]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix the focus ring on focused checked buttons (#39595)
authorLouis-Maxime Piton <louismaxime.piton@orange.com>
Tue, 6 Feb 2024 19:59:42 +0000 (20:59 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Feb 2024 19:59:42 +0000 (21:59 +0200)
scss/_buttons.scss

index e14a184384dc42d40b25f79c854a4f9b43b0ea60..caa4518ac8fcb59ad36e3878e382267ba5e666ac 100644 (file)
     }
   }
 
+  .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 & {