0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

properly pass focus shadow should you enable shadows

don't implement for the outline style because outline buttons get no shadow by default
This commit is contained in:
Mark Otto 2016-12-27 14:50:33 -08:00 committed by Mark Otto
parent b449e6b65e
commit e38c3506e3

View File

@ -20,7 +20,12 @@
}
&:focus,
&.focus {
box-shadow: 0 0 0 2px rgba($border, .5);
// Avoid using mixin so we can pass custom focus shadow properly
@if $enable-shadows {
box-shadow: $btn-box-shadow, 0 0 0 2px rgba($border, .5);
} @else {
box-shadow: 0 0 0 2px rgba($border, .5);
}
}
// Disabled comes first so active can properly restyle