beem-component 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,16 +13,17 @@ var _colors = require("../colors");
|
|
|
13
13
|
|
|
14
14
|
var _text = require("../text");
|
|
15
15
|
|
|
16
|
+
var _polished = require("polished");
|
|
17
|
+
|
|
16
18
|
var _templateObject;
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
23
|
|
|
22
|
-
var BmRouteLink = (0, _styledComponents.default)(_reactRouterDom.Link)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n text-decoration: none;\n &:hover,\n &:focus,\n &:active {\n
|
|
24
|
+
var BmRouteLink = (0, _styledComponents.default)(_reactRouterDom.Link)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n text-decoration: none;\n &:hover,\n &:focus,\n &:active {\n font-weight: 600;\n &:before {\n font-weight: normal;\n }\n color: ", " !important;\n }\n"])), _text.p, function (props) {
|
|
23
25
|
return props.color ? props.color : "".concat(_colors.BmPrimaryBlue, " ");
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return (0, _polished.darken)(0.1, props.color ? props.color : "".concat(_colors.BmPrimaryBlue));
|
|
28
|
+
});
|
|
28
29
|
exports.BmRouteLink = BmRouteLink;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import { Link } from "react-router-dom";
|
|
3
3
|
import { BmPrimaryBlue } from "../colors";
|
|
4
4
|
import { p } from "../text";
|
|
5
|
+
import { darken } from "polished";
|
|
5
6
|
|
|
6
7
|
export const BmRouteLink = styled(Link)`
|
|
7
8
|
${p}
|
|
@@ -10,11 +11,10 @@ export const BmRouteLink = styled(Link)`
|
|
|
10
11
|
&:hover,
|
|
11
12
|
&:focus,
|
|
12
13
|
&:active {
|
|
13
|
-
${'' /* color: ${(props) =>
|
|
14
|
-
darken(0.1, props.color ? props.color : `${BmPrimaryBlue} `)} !important; */}
|
|
15
14
|
font-weight: 600;
|
|
16
15
|
&:before {
|
|
17
16
|
font-weight: normal;
|
|
18
17
|
}
|
|
18
|
+
color: ${(props) => darken(0.1, props.color ? props.color : `${BmPrimaryBlue}`)} !important;
|
|
19
19
|
}
|
|
20
20
|
`;
|