Fix the focus ring on focused checked buttons (#39595)

This commit is contained in:
Louis-Maxime Piton 2024-02-06 20:59:42 +01:00 committed by GitHub
parent d85a84b7b1
commit 5010e8d73e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 & {