Skip to content

Commit

Permalink
Merge pull request #429 from digitalnsw/bugfix/tags
Browse files Browse the repository at this point in the history
Removes hover state from text tag.
  • Loading branch information
oisa authored Jul 11, 2024
2 parents 0f61c8e + 1de95e3 commit 858ba34
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 858ba34

Please sign in to comment.