Skip to content

Commit 5f31e24

Browse files
reidbarberLFDanLu
andauthored
fix link color in Safari (#4864)
Co-authored-by: Daniel Lu <[email protected]>
1 parent 048ace7 commit 5f31e24

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

packages/@adobe/spectrum-css-temp/components/link/skin.css

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,19 @@ governing permissions and limitations under the License.
3535
}
3636
}
3737

38-
@media (forced-colors: none) {
39-
.spectrum-Link--secondary {
40-
color: inherit;
38+
.spectrum-Link--secondary {
39+
color: inherit;
4140

42-
&:hover {
43-
color: inherit;
44-
}
41+
&:hover {
42+
color: inherit;
43+
}
4544

46-
&:active {
47-
color: inherit;
48-
}
45+
&:active {
46+
color: inherit;
47+
}
4948

50-
&:focus {
51-
color: inherit;
52-
}
49+
&:focus {
50+
color: inherit;
5351
}
5452
}
5553

@@ -75,14 +73,18 @@ governing permissions and limitations under the License.
7573

7674
@media (forced-colors: active) {
7775
.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;
76+
color: LinkText;
77+
78+
&:hover {
79+
color: LinkText;
80+
}
81+
82+
&:active {
83+
color: LinkText;
84+
}
85+
86+
&:focus {
87+
color: LinkText;
88+
}
8789
}
8890
}

0 commit comments

Comments
 (0)