Skip to content

Commit

Permalink
Link component should use native outline - boxShadow cause a11y issue…
Browse files Browse the repository at this point in the history
…s on high contrast themes
  • Loading branch information
stamat committed Dec 2, 2024
1 parent 7473042 commit 35e5b80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react/src/Link/Link.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
display: inline-flex;
align-items: center;
justify-content: center;
transition: box-shadow var(--brand-animation-duration-faster);
text-decoration: none;
cursor: pointer;
}
Expand Down Expand Up @@ -38,9 +37,8 @@
}

.Link:focus:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--brand-color-canvas-default), 0 0 2px 5px var(--brand-color-focus);
transition: none;
outline: 4px solid var(--brand-color-focus);
outline-offset: 2px;
}

.Link--default,
Expand Down

0 comments on commit 35e5b80

Please sign in to comment.