@thecb/components 8.3.1-beta.2 → 8.3.1-beta.3
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.
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import ButtonWithAction from "../button-with-action";
|
|
|
8
8
|
const ButtonWithLink = ({
|
|
9
9
|
url = "/",
|
|
10
10
|
active = false,
|
|
11
|
+
activeBackgroundColor = undefined,
|
|
11
12
|
disabled = false,
|
|
12
13
|
fileLink = false,
|
|
13
14
|
extraStyles,
|
|
@@ -20,6 +21,7 @@ const ButtonWithLink = ({
|
|
|
20
21
|
children,
|
|
21
22
|
url,
|
|
22
23
|
active,
|
|
24
|
+
activeBackgroundColor,
|
|
23
25
|
disabled,
|
|
24
26
|
newTab,
|
|
25
27
|
dataQa,
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
SAPPHIRE_BLUE,
|
|
3
|
+
PEACOCK_BLUE,
|
|
4
|
+
INFO_BLUE,
|
|
5
|
+
MATISSE_BLUE,
|
|
6
|
+
} from "../../../constants/colors";
|
|
2
7
|
|
|
3
8
|
const fontFamily = {
|
|
4
9
|
primary: "Public Sans",
|
|
5
|
-
secondary: "Open Sans"
|
|
10
|
+
secondary: "Open Sans",
|
|
6
11
|
};
|
|
7
12
|
|
|
8
|
-
const hoverColor =
|
|
9
|
-
const activeColor =
|
|
10
|
-
const activeBackgroundColor =
|
|
11
|
-
const externalLinkColor =
|
|
13
|
+
const hoverColor = SAPPHIRE_BLUE;
|
|
14
|
+
const activeColor = PEACOCK_BLUE;
|
|
15
|
+
const activeBackgroundColor = INFO_BLUE;
|
|
16
|
+
const externalLinkColor = MATISSE_BLUE;
|
|
12
17
|
|
|
13
18
|
export const fallbackValues = {
|
|
14
19
|
fontFamily,
|
|
15
20
|
hoverColor,
|
|
16
21
|
activeColor,
|
|
17
22
|
activeBackgroundColor,
|
|
18
|
-
externalLinkColor
|
|
23
|
+
externalLinkColor,
|
|
19
24
|
};
|