summaryrefslogtreecommitdiffstats
path: root/scss/_buttons.scss
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:22:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:22:19 +0000
commit6c0806874f6757db30937bf5620ef41819c1538d (patch)
tree40874ca50d55d0ef5a942d26e5a37cf1516c378a /scss/_buttons.scss
parentReleasing debian version 5.3.1+dfsg-1. (diff)
downloadbootstrap-html-6c0806874f6757db30937bf5620ef41819c1538d.tar.xz
bootstrap-html-6c0806874f6757db30937bf5620ef41819c1538d.zip
Merging upstream version 5.3.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--scss/_buttons.scss11
1 files changed, 10 insertions, 1 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index cbc0784..caa4518 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 & {
@@ -170,7 +179,7 @@
--#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
--#{$prefix}btn-disabled-border-color: transparent;
--#{$prefix}btn-box-shadow: 0 0 0 #000; // Can't use `none` as keyword negates all values when used with multiple shadows
- --#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($link-color), $link-color, 15%))};
+ --#{$prefix}btn-focus-shadow-rgb: #{$btn-link-focus-shadow-rgb};
text-decoration: $link-decoration;
@if $enable-gradients {