@@ -10,14 +10,12 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
governing permissions and limitations under the License.
11
11
*/
12
12
13
- : root {
13
+ . spectrum-Link {
14
14
--spectrum-link-text-color : var (--spectrum-accent-color-1000 );
15
15
--spectrum-link-text-color-hover : var (--spectrum-accent-color-1000 );
16
16
--spectrum-link-text-color-down : var (--spectrum-accent-color-1100 );
17
17
--spectrum-link-text-color-key-focus : var (--spectrum-accent-color-1000 );
18
- }
19
18
20
- .spectrum-Link {
21
19
color : var (--spectrum-link-text-color );
22
20
23
21
& : hover {
@@ -37,19 +35,21 @@ governing permissions and limitations under the License.
37
35
}
38
36
}
39
37
40
- .spectrum-Link--secondary {
41
- color : inherit;
42
-
43
- & : hover {
38
+ @media (forced-colors : none) {
39
+ .spectrum-Link--secondary {
44
40
color : inherit;
45
- }
46
41
47
- & : active {
48
- color : inherit;
49
- }
42
+ & : hover {
43
+ color : inherit;
44
+ }
50
45
51
- & : focus {
52
- color : inherit;
46
+ & : active {
47
+ color : inherit;
48
+ }
49
+
50
+ & : focus {
51
+ color : inherit;
52
+ }
53
53
}
54
54
}
55
55
@@ -72,3 +72,17 @@ governing permissions and limitations under the License.
72
72
color : var (--spectrum-link-over-background-text-color-disabled );
73
73
}
74
74
}
75
+
76
+ @media (forced-colors : active) {
77
+ .spectrum-Link {
78
+ --spectrum-link-text-color : LinkText;
79
+ --spectrum-link-text-color-hover : LinkText;
80
+ --spectrum-link-text-color-down : LinkText;
81
+ --spectrum-link-text-color-key-focus : LinkText;
82
+
83
+ --spectrum-link-over-background-text-color : LinkText;
84
+ --spectrum-link-over-background-text-color-hover : LinkText;
85
+ --spectrum-link-over-background-text-color-down : LinkText;
86
+ --spectrum-link-over-background-text-color-key-focus : LinkText;
87
+ }
88
+ }
0 commit comments