@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.2.1-beta.4",
3
+ "version": "10.2.1-beta.5",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -53,7 +53,8 @@ const TermsAndConditionsModal = ({
53
53
  color={themeValues.linkColor}
54
54
  weight={themeValues.fontWeight}
55
55
  hoverStyles={themeValues.modalLinkHoverFocus}
56
- extraStyles={`text-decoration: underline; display: inline-block; width: fit-content; cursor: pointer`}
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
  >
@@ -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
  };