]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
v5: Update color on custom switch focus state
authorMark Otto <markdotto@gmail.com>
Thu, 14 May 2020 17:48:42 +0000 (10:48 -0700)
committerMark Otto <otto@github.com>
Fri, 15 May 2020 03:31:30 +0000 (20:31 -0700)
Replaces a custom hsla() value (dunno what I was thinking when I added this) with a reassigned existing variable. This variable goes up the stack and attaches to the component-active-bg variable, derived from our primary color out of the box. Fixes #30646.

scss/_variables.scss

index 2d8aa51cb41ede3dfae14bfaffbaab03377a5421..6bbcc066bbfa99d0930b0a1956e50bd7cd01a916 100644 (file)
@@ -683,7 +683,7 @@ $form-switch-padding-left:        $form-switch-width + .5em !default;
 $form-switch-bg-image:            url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color}'/></svg>") !default;
 $form-switch-border-radius:       $form-switch-width !default;
 
-$form-switch-focus-color:         hsla(211, 100%, 75%, 1) !default;
+$form-switch-focus-color:         $input-focus-border-color !default;
 $form-switch-focus-bg-image:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-focus-color}'/></svg>") !default;
 
 $form-switch-checked-color:       $component-active-color !default;