@cloudscape-design/components-themeable 3.0.1376 → 3.0.1378
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/links.scss +4 -4
- package/lib/internal/scss/link/styles.scss +7 -4
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.th.js +1 -1
- package/lib/internal/template/i18n/messages/all.th.json +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +115 -107
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/package.json +1 -1
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
);
|
|
21
21
|
font-weight: map.get($variant, 'font-weight');
|
|
22
22
|
letter-spacing: map.get($variant, 'letter-spacing');
|
|
23
|
-
text-decoration-line: map.get($variant, 'decoration-line');
|
|
24
|
-
text-decoration-color: map.get($variant, 'decoration-color');
|
|
23
|
+
text-decoration-line: style-api.value($tokens, text-decoration-line, map.get($variant, 'decoration-line'));
|
|
24
|
+
text-decoration-color: style-api.value($tokens, text-decoration-color, map.get($variant, 'decoration-color'));
|
|
25
25
|
|
|
26
26
|
@include styles.with-motion {
|
|
27
27
|
transition-property: color, text-decoration;
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
&:active,
|
|
53
53
|
&:focus,
|
|
54
54
|
&:hover {
|
|
55
|
-
text-decoration-line: underline;
|
|
56
|
-
text-decoration-color: map.get($variant, 'decoration-color-hover');
|
|
55
|
+
text-decoration-line: style-api.value($tokens, text-decoration-line, underline);
|
|
56
|
+
text-decoration-color: style-api.value($tokens, text-decoration-color, map.get($variant, 'decoration-color-hover'));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
@use '../internal/styles/utils/theming' as theming;
|
|
14
14
|
@use '../internal/styles/style-api' as style-api;
|
|
15
15
|
|
|
16
|
-
$tokens: style-api.resolve(
|
|
16
|
+
$tokens: style-api.resolve(
|
|
17
|
+
(color, focus-ring-color, focus-ring-width, focus-ring-radius, text-decoration-line, text-decoration-color),
|
|
18
|
+
public
|
|
19
|
+
);
|
|
17
20
|
@include style-api.register($tokens);
|
|
18
21
|
@include style-api.docs('root', $tokens);
|
|
19
22
|
|
|
@@ -63,7 +66,7 @@ $tokens: style-api.resolve((color, focus-ring-color, focus-ring-width, focus-rin
|
|
|
63
66
|
}
|
|
64
67
|
&.color-inverted {
|
|
65
68
|
color: style-api.value($tokens, color, awsui.$color-text-link-inverted-default);
|
|
66
|
-
text-decoration-color: currentColor;
|
|
69
|
+
text-decoration-color: style-api.value($tokens, text-decoration-color, currentColor);
|
|
67
70
|
&:hover {
|
|
68
71
|
color: style-api.value($tokens, color, awsui.$color-text-link-inverted-hover);
|
|
69
72
|
}
|
|
@@ -77,8 +80,8 @@ $tokens: style-api.resolve((color, focus-ring-color, focus-ring-width, focus-rin
|
|
|
77
80
|
@include focus-ring-box-shadow(currentColor);
|
|
78
81
|
}
|
|
79
82
|
&:not(.button) {
|
|
80
|
-
text-decoration-line: underline;
|
|
81
|
-
text-decoration-color: currentColor;
|
|
83
|
+
text-decoration-line: style-api.value($tokens, text-decoration-line, underline);
|
|
84
|
+
text-decoration-color: style-api.value($tokens, text-decoration-color, currentColor);
|
|
82
85
|
}
|
|
83
86
|
&:hover {
|
|
84
87
|
color: style-api.value($tokens, color, awsui.$color-text-link-inverted-hover);
|