0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

Only apply the active and focus shadow on the focus state for :active

This commit is contained in:
Mark Otto 2017-12-23 20:33:41 -08:00 committed by Mark Otto
parent c0129f8c2a
commit 97cfe5a582

View File

@ -40,7 +40,11 @@
&:not([disabled]):not(.disabled):active,
&:not([disabled]):not(.disabled).active {
background-image: none;
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
box-shadow: $btn-active-box-shadow;
&:focus {
@box-shadow: $btn-focus-box-shadow, $btn-active-box-shadow;
}
}
}