mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-17 14:54:30 +01:00
Outline active focus (#25145)
* Base the outline button :active color on the background, fixing a contrast issue * Only apply focus outline to active when it's focused
This commit is contained in:
parent
5b8eaffc12
commit
43c551e97d
@ -79,13 +79,16 @@
|
|||||||
&:not([disabled]):not(.disabled):active,
|
&:not([disabled]):not(.disabled):active,
|
||||||
&:not([disabled]):not(.disabled).active,
|
&:not([disabled]):not(.disabled).active,
|
||||||
.show > &.dropdown-toggle {
|
.show > &.dropdown-toggle {
|
||||||
color: color-yiq($color-hover);
|
color: color-yiq($active-background);
|
||||||
background-color: $active-background;
|
background-color: $active-background;
|
||||||
border-color: $active-border;
|
border-color: $active-border;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
// Avoid using mixin so we can pass custom focus shadow properly
|
// Avoid using mixin so we can pass custom focus shadow properly
|
||||||
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Button sizes
|
// Button sizes
|
||||||
@mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
@mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user