From 1de95e3ff78473b1e9d8beaba73fa5eed448b000 Mon Sep 17 00:00:00 2001 From: Jim Carlton Date: Thu, 11 Jul 2024 13:51:04 +1000 Subject: [PATCH] Removes hover state from text tag. --- src/components/tag/_tag.scss | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/tag/_tag.scss b/src/components/tag/_tag.scss index dadce577..a6a7943b 100644 --- a/src/components/tag/_tag.scss +++ b/src/components/tag/_tag.scss @@ -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 {