aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-08-22 18:59:16 -0700
committerMark Otto <[email protected]>2015-08-22 18:59:16 -0700
commit5bb03b794d121f2cfdaabf2de2841fe5e819b0b1 (patch)
treee40a1bb8676369771a7d5cdea082c001fe41781d
parent16075cc068b14cdbb4cda4fe2c0e5c097824c26c (diff)
parentc49503165a301e53583dcb74003e2894d966269b (diff)
downloadbootstrap-5bb03b794d121f2cfdaabf2de2841fe5e819b0b1.tar.xz
bootstrap-5bb03b794d121f2cfdaabf2de2841fe5e819b0b1.zip
Merge pull request #17220 from cornedor/fix-17066
Removed mixin from focus outline box-shadow fixes #17066
-rw-r--r--scss/_custom-forms.scss9
1 files changed, 5 insertions, 4 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index ec211acaa..bc36013e9 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -19,16 +19,17 @@
z-index: -1; // Put the input behind the label so it doesn't overlay text
opacity: 0;
- &:focus ~ .c-indicator {
- @include box-shadow(0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9);
- }
-
&:checked ~ .c-indicator {
color: #fff;
background-color: #0074d9;
@include box-shadow(none);
}
+ &:focus ~ .c-indicator {
+ // the mixin is not used here to make sure there is feedback
+ box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9;
+ }
+
&:active ~ .c-indicator {
color: #fff;
background-color: #84c6ff;