mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Highlight use cases where :focus-visible is used for BrowserStack testing
This commit is contained in:
parent
b029cd6bde
commit
60ff612061
@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap.css",
|
"path": "./dist/css/bootstrap.css",
|
||||||
"maxSize": "29.5 kB"
|
"maxSize": "29.75 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap.min.css",
|
"path": "./dist/css/bootstrap.min.css",
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
color: var(--#{$prefix}btn-hover-color);
|
color: #ffc0cb;
|
||||||
@include gradient-bg(var(--#{$prefix}btn-hover-bg));
|
@include gradient-bg(var(--#{$prefix}btn-hover-bg));
|
||||||
border-color: var(--#{$prefix}btn-hover-border-color);
|
border-color: var(--#{$prefix}btn-hover-border-color);
|
||||||
outline: 0;
|
outline: 0;
|
||||||
@ -68,6 +68,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-check:focus-visible + & {
|
.btn-check:focus-visible + & {
|
||||||
|
color: #ffc0cb;
|
||||||
border-color: var(--#{$prefix}btn-hover-border-color);
|
border-color: var(--#{$prefix}btn-hover-border-color);
|
||||||
outline: 0;
|
outline: 0;
|
||||||
// Avoid using mixin so we can pass custom focus shadow properly
|
// Avoid using mixin so we can pass custom focus shadow properly
|
||||||
@ -91,6 +92,8 @@
|
|||||||
@include box-shadow(var(--#{$prefix}btn-active-shadow));
|
@include box-shadow(var(--#{$prefix}btn-active-shadow));
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
|
color: #ffc0cb;
|
||||||
|
|
||||||
// Avoid using mixin so we can pass custom focus shadow properly
|
// Avoid using mixin so we can pass custom focus shadow properly
|
||||||
@if $enable-shadows {
|
@if $enable-shadows {
|
||||||
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
||||||
@ -179,11 +182,12 @@
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
|
color: #ffc0cb;
|
||||||
text-decoration: $link-hover-decoration;
|
text-decoration: $link-hover-decoration;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
color: var(--#{$prefix}btn-color);
|
color: #ffc0cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -397,6 +397,7 @@ button {
|
|||||||
// confused and applies its very visible two-tone outline anyway.
|
// confused and applies its very visible two-tone outline anyway.
|
||||||
|
|
||||||
button:focus:not(:focus-visible) {
|
button:focus:not(:focus-visible) {
|
||||||
|
color: #cbf;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
|
|
||||||
.dropdown-toggle {
|
.dropdown-toggle {
|
||||||
&:focus:not(:focus-visible) {
|
&:focus:not(:focus-visible) {
|
||||||
|
color: #cbf;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user