File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -245,20 +245,31 @@ body {
245
245
color : var (--color-primary-800 );
246
246
}
247
247
248
- .visited-link {
249
- color : var (--color-primary-800 );
248
+ & :active {
249
+ background : var (--color-primary-900 );
250
+ color : var (--color-shades-0 );
250
251
}
251
252
252
- & :visited .visited-link {
253
- color : var (--color-shades-0 );
253
+ // if the link hasn't been visited, then on hover/focus, the icon should match the background (800 on 800)
254
+ .visited-link {
255
+ color : var (--color-primary-800 );
254
256
}
255
257
258
+ // if the link hasn't been visited, then on hover/focus the icon should match the background (white on white)
256
259
& :hover .visited-link ,
257
260
& :focus .visited-link {
258
261
color : var (--color-shades-0 );
259
262
}
260
263
264
+ // if the link hasn't been visited, then on active state, the icon should match the background (900 on 900)
261
265
& :active .visited-link {
266
+ color : var (--color-shades-900 );
267
+ }
268
+
269
+ // the rest of these are *visited* states, which should contrast with the background
270
+ & :visited .visited-link ,
271
+ & :visited:active .visited-link ,
272
+ & :visited:active:hover .visited-link {
262
273
color : var (--color-shades-0 );
263
274
}
264
275
You can’t perform that action at this time.
0 commit comments