Skip to content

Commit

Permalink
Removes hover state from text tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
oisa committed Jul 11, 2024
1 parent 0f61c8e commit 1de95e3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,26 @@
color: var(--nsw-brand-dark);
}

&:hover:not(.nsw-tag--checkbox) {
&:hover:not(.nsw-tag--checkbox, span) {
@include nsw-hover;
outline-width: 0;
}

&:is(span) {
cursor: default;
}

&:focus {
outline-width: 3px;
}

.nsw-section--invert & {
@include link-light;
.nsw-section--invert & {
color: var(--nsw-text-light);
border-color: var(--nsw-text-light);

&:not(span) {
@include link-light;
}
}

&--checkbox {
Expand Down

0 comments on commit 1de95e3

Please sign in to comment.