Skip to content

Commit ac85fdb

Browse files
committed
Suppress focus outline for buttons when it shouldn't be visible in Chromium
Follow-up to #32631
1 parent 88d35b7 commit ac85fdb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scss/_reboot.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,15 @@ button {
411411
border-radius: 0;
412412
}
413413

414+
// Explicitly remove focus outline in Chromium when it shouldn't be
415+
// visible (e.g. as result of mouse click or touch tap). It already
416+
// should be doing this automatically, but seems to currently be
417+
// confused and applies its very visible two-tone outline anyway.
418+
419+
button:focus:not(:focus-visible) {
420+
outline: 0;
421+
}
422+
414423
// 1. Remove the margin in Firefox and Safari
415424

416425
input,

0 commit comments

Comments
 (0)