@thecb/components 5.2.3 → 5.3.3-beta.0
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/dist/index.cjs.js +5 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +0 -5
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +13 -5
package/package.json
CHANGED
|
@@ -47,11 +47,6 @@ const TermsAndConditionsModal = ({
|
|
|
47
47
|
color={themeValues.linkColor}
|
|
48
48
|
weight={themeValues.fontWeight}
|
|
49
49
|
hoverStyles={themeValues.modalLinkHoverFocus}
|
|
50
|
-
extraStyles={`cursor: pointer;
|
|
51
|
-
&:focus {
|
|
52
|
-
outline: 3px solid ${themeValues.accessibilityColor};
|
|
53
|
-
outline-offset: 2px;
|
|
54
|
-
}`}
|
|
55
50
|
>
|
|
56
51
|
{link}
|
|
57
52
|
</Text>
|
package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js
CHANGED
|
@@ -12,11 +12,20 @@ const fontWeight = {
|
|
|
12
12
|
default: FONT_WEIGHT_REGULAR,
|
|
13
13
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
14
14
|
};
|
|
15
|
+
const standardInteractionStyles = `
|
|
16
|
+
&:hover {
|
|
17
|
+
outline: none;
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
}
|
|
20
|
+
&:focus {
|
|
21
|
+
outline: 3px solid #3181E3;
|
|
22
|
+
outline-offset: 2px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
15
25
|
const modalLinkHoverFocus = {
|
|
16
|
-
default:
|
|
17
|
-
footer:
|
|
26
|
+
default: standardInteractionStyles,
|
|
27
|
+
footer: standardInteractionStyles
|
|
18
28
|
};
|
|
19
|
-
const accessibilityColor = { default: "#3181E3", footer: "#3181E3" };
|
|
20
29
|
|
|
21
30
|
export const fallbackValues = {
|
|
22
31
|
backgroundColor,
|
|
@@ -25,6 +34,5 @@ export const fallbackValues = {
|
|
|
25
34
|
fontSize,
|
|
26
35
|
lineHeight,
|
|
27
36
|
fontWeight,
|
|
28
|
-
modalLinkHoverFocus
|
|
29
|
-
accessibilityColor
|
|
37
|
+
modalLinkHoverFocus
|
|
30
38
|
};
|