@thecb/components 10.2.1-beta.5 → 10.2.1-beta.7

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.5",
3
+ "version": "10.2.1-beta.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -172,7 +172,7 @@ const FormInput = ({
172
172
  color={themeValues.linkColor}
173
173
  weight={themeValues.fontWeight}
174
174
  hoverStyles={themeValues.hoverFocusStyles}
175
- extraStyles={`cursor: pointer; &:focus { outline-offset: -2px; }`}
175
+ extraStyles={`text-decoration: underline; cursor: pointer; &:focus { outline-offset: -2px; }`}
176
176
  onClick={() => setShowPassword(!showPassword)}
177
177
  tabIndex="0"
178
178
  aria-label={showPassword ? "Hide Password" : "Show password"}
@@ -60,6 +60,7 @@ const AccountAndRoutingModal = ({
60
60
  color={themeValues.linkColor}
61
61
  weight={themeValues.fontWeight}
62
62
  hoverStyles={themeValues.modalLinkHoverFocus}
63
+ textDecoration={themeValues.linkTextDecoration}
63
64
  extraStyles={`cursor: pointer;`}
64
65
  role="button"
65
66
  className="modal-trigger"
@@ -1,4 +1,7 @@
1
- import { FONT_WEIGHT_REGULAR } from "../../../constants/style_constants";
1
+ import {
2
+ FONT_WEIGHT_REGULAR,
3
+ LINK_TEXT_DECORATION
4
+ } from "../../../constants/style_constants";
2
5
 
3
6
  const linkColor = { default: "#3176AA" };
4
7
  const fontSize = { default: "1rem" };
@@ -10,10 +13,15 @@ const modalLinkHoverFocus = {
10
13
  default: `outline: none; text-decoration: underline;`
11
14
  };
12
15
 
16
+ const linkTextDecoration = {
17
+ default: LINK_TEXT_DECORATION
18
+ };
19
+
13
20
  export const fallbackValues = {
14
21
  linkColor,
15
22
  fontSize,
16
23
  lineHeight,
17
24
  fontWeight,
18
- modalLinkHoverFocus
25
+ modalLinkHoverFocus,
26
+ linkTextDecoration
19
27
  };