Skip to content

Commit 811706d

Browse files
committed
update and rearrange label styles
1 parent 330bbcb commit 811706d

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/scss/apps.scss

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,31 @@ body {
245245
color: var(--color-primary-800);
246246
}
247247

248-
.visited-link {
249-
color: var(--color-primary-800);
248+
&:active {
249+
background: var(--color-primary-900);
250+
color: var(--color-shades-0);
250251
}
251252

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);
254256
}
255257

258+
//if the link hasn't been visited, then on hover/focus the icon should match the background (white on white)
256259
&:hover .visited-link,
257260
&:focus .visited-link {
258261
color: var(--color-shades-0);
259262
}
260263

264+
//if the link hasn't been visited, then on active state, the icon should match the background (900 on 900)
261265
&: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 {
262273
color: var(--color-shades-0);
263274
}
264275

0 commit comments

Comments
 (0)