Skip to content

Commit

Permalink
switched to has: focus-visible for checkbox focus styling
Browse files Browse the repository at this point in the history
  • Loading branch information
adamleithp committed Dec 17, 2024
1 parent 6dca54c commit d77a518
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/lib/lemon-ui/LemonCheckbox/LemonCheckbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
width: fit-content;
font-weight: 500;
line-height: 1.5rem;
outline-offset: 2px;

&:has(:focus-visible) {
.LemonCheckbox__box {
outline: -webkit-focus-ring-color auto 1px;
}
}

.LemonCheckbox__input {
width: 0 !important;
Expand Down

0 comments on commit d77a518

Please sign in to comment.