@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.2.3",
3
+ "version": "5.3.3-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -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>
@@ -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: `outline: none; text-decoration: underline;`,
17
- footer: `outline: none; text-decoration: underline;`
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
  };