From 5010e8d73e91d8b41792a4a53f36bf899195d2e5 Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Tue, 6 Feb 2024 20:59:42 +0100 Subject: [PATCH] Fix the focus ring on focused checked buttons (#39595) --- scss/_buttons.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scss/_buttons.scss b/scss/_buttons.scss index e14a184384..caa4518ac8 100644 --- a/scss/_buttons.scss +++ b/scss/_buttons.scss @@ -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 & {