Skip to content

Commit

Permalink
fix: active states and focus states of inline and standalone links (#…
Browse files Browse the repository at this point in the history
…15846)

* fix: active states and focus states of inline and standalone links

* fix: added focus outline in active states
  • Loading branch information
riddhybansal committed Mar 1, 2024
1 parent 77fdcf8 commit 17b30f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/styles/scss/components/link/_link.scss
Expand Up @@ -46,14 +46,18 @@ $link-focus-text-color: custom-property.get-var(
&:active,
&:active:visited,
&:active:visited:hover {
@include focus-outline;

color: $text-primary;
outline-color: $link-focus-text-color;
text-decoration: underline;
}

&:focus {
@include focus-outline;

outline-color: $link-focus-text-color;
text-decoration: underline;
}

&:visited {
Expand Down Expand Up @@ -87,11 +91,6 @@ $link-focus-text-color: custom-property.get-var(
.#{$prefix}--link.#{$prefix}--link--inline {
display: inline;
text-decoration: underline;

&:focus,
&:visited {
text-decoration: none;
}
}

.#{$prefix}--link--disabled.#{$prefix}--link--inline {
Expand Down

0 comments on commit 17b30f7

Please sign in to comment.