Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
show active state and add hover/focus state to tag
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-lawton committed Jul 27, 2023
1 parent 5e81028 commit 1cd5d5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tbx/static_src/sass/components/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,16 @@
border: 2px solid var(--color--coral-dark);
color: var(--color--coral-dark);
}

// Use text-decoration for states
@media (forced-colors: active) {
&--active {
text-decoration: underline;
}

&:focus,
&:hover {
filter: invert(1);
}
}
}

0 comments on commit 1cd5d5b

Please sign in to comment.