Skip to content

Commit

Permalink
Fix the focus ring on focused checked buttons (#39595)
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored Feb 6, 2024
1 parent d85a84b commit 5010e8d
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 5010e8d

Please sign in to comment.