@thecb/components 10.2.1-beta.4 → 10.2.1-beta.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.
- package/dist/index.cjs.js +8 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +2 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +10 -2
package/package.json
CHANGED
|
@@ -53,7 +53,8 @@ const TermsAndConditionsModal = ({
|
|
|
53
53
|
color={themeValues.linkColor}
|
|
54
54
|
weight={themeValues.fontWeight}
|
|
55
55
|
hoverStyles={themeValues.modalLinkHoverFocus}
|
|
56
|
-
|
|
56
|
+
textDecoration={themeValues.modalLinkTextDecoration}
|
|
57
|
+
extraStyles={`display: inline-block; width: fit-content; cursor: pointer`}
|
|
57
58
|
role="button" // This should always be a "button" since it opens a modal
|
|
58
59
|
className="modal-trigger"
|
|
59
60
|
>
|
package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FONT_WEIGHT_REGULAR,
|
|
3
|
-
FONT_WEIGHT_SEMIBOLD
|
|
3
|
+
FONT_WEIGHT_SEMIBOLD,
|
|
4
|
+
LINK_TEXT_DECORATION
|
|
4
5
|
} from "../../../constants/style_constants";
|
|
5
6
|
|
|
6
7
|
const backgroundColor = { default: "#ffffff", footer: "#ffffff" };
|
|
@@ -22,11 +23,17 @@ const standardInteractionStyles = `
|
|
|
22
23
|
outline-offset: 2px;
|
|
23
24
|
}
|
|
24
25
|
`;
|
|
26
|
+
|
|
25
27
|
const modalLinkHoverFocus = {
|
|
26
28
|
default: standardInteractionStyles,
|
|
27
29
|
footer: standardInteractionStyles
|
|
28
30
|
};
|
|
29
31
|
|
|
32
|
+
const modalLinkTextDecoration = {
|
|
33
|
+
default: LINK_TEXT_DECORATION,
|
|
34
|
+
footer: "none"
|
|
35
|
+
};
|
|
36
|
+
|
|
30
37
|
export const fallbackValues = {
|
|
31
38
|
backgroundColor,
|
|
32
39
|
linkColor,
|
|
@@ -34,5 +41,6 @@ export const fallbackValues = {
|
|
|
34
41
|
fontSize,
|
|
35
42
|
lineHeight,
|
|
36
43
|
fontWeight,
|
|
37
|
-
modalLinkHoverFocus
|
|
44
|
+
modalLinkHoverFocus,
|
|
45
|
+
modalLinkTextDecoration
|
|
38
46
|
};
|