Skip to content

Commit

Permalink
Fix the focus ring on focused checked buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Jan 22, 2024
1 parent af09293 commit 158a603
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@
}
}

.btn-check:checked:focus-visible + & {
// Avoid using mixin so we can pass custom focus shadow properly
@if $enable-shadows {
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
} @else {
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
}
}

&:disabled,
&.disabled,
fieldset:disabled & {
Expand Down

0 comments on commit 158a603

Please sign in to comment.