Skip to content

Commit 60ff612

Browse files
Highlight use cases where :focus-visible is used for BrowserStack testing
1 parent b029cd6 commit 60ff612

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.bundlewatch.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"path": "./dist/css/bootstrap.css",
29-
"maxSize": "29.5 kB"
29+
"maxSize": "29.75 kB"
3030
},
3131
{
3232
"path": "./dist/css/bootstrap.min.css",

scss/_buttons.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
}
5656

5757
&:focus-visible {
58-
color: var(--#{$prefix}btn-hover-color);
58+
color: #ffc0cb;
5959
@include gradient-bg(var(--#{$prefix}btn-hover-bg));
6060
border-color: var(--#{$prefix}btn-hover-border-color);
6161
outline: 0;
@@ -68,6 +68,7 @@
6868
}
6969

7070
.btn-check:focus-visible + & {
71+
color: #ffc0cb;
7172
border-color: var(--#{$prefix}btn-hover-border-color);
7273
outline: 0;
7374
// Avoid using mixin so we can pass custom focus shadow properly
@@ -91,6 +92,8 @@
9192
@include box-shadow(var(--#{$prefix}btn-active-shadow));
9293

9394
&:focus-visible {
95+
color: #ffc0cb;
96+
9497
// Avoid using mixin so we can pass custom focus shadow properly
9598
@if $enable-shadows {
9699
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
@@ -179,11 +182,12 @@
179182

180183
&:hover,
181184
&:focus-visible {
185+
color: #ffc0cb;
182186
text-decoration: $link-hover-decoration;
183187
}
184188

185189
&:focus-visible {
186-
color: var(--#{$prefix}btn-color);
190+
color: #ffc0cb;
187191
}
188192

189193
&:hover {

scss/_reboot.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ button {
397397
// confused and applies its very visible two-tone outline anyway.
398398

399399
button:focus:not(:focus-visible) {
400+
color: #cbf;
400401
outline: 0;
401402
}
402403

site/assets/scss/_navbar.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
.dropdown-toggle {
7272
&:focus:not(:focus-visible) {
73+
color: #cbf;
7374
outline: 0;
7475
}
7576
}

0 commit comments

Comments
 (0)