aboutsummaryrefslogtreecommitdiff
path: root/scss/_reboot.scss
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2021-01-10 10:42:26 +0000
committerGitHub <[email protected]>2021-01-10 10:42:26 +0000
commita2ae2c364f0fe58bf2abbd87cfd5af5d0bf57326 (patch)
treed4fafaf2ffc17392ea4f8a5e41cc16ab4a437d19 /scss/_reboot.scss
parent7e6d7b8f817ad1212238f15124335d37c93ebfea (diff)
downloadbootstrap-a2ae2c364f0fe58bf2abbd87cfd5af5d0bf57326.tar.xz
bootstrap-a2ae2c364f0fe58bf2abbd87cfd5af5d0bf57326.zip
Suppress focus outline for buttons when it shouldn't be visible in Chromium (#32689)
Follow-up to https://github.com/twbs/bootstrap/pull/32631 Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'scss/_reboot.scss')
-rw-r--r--scss/_reboot.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index 58e1a34d0..973b5d16c 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -411,6 +411,15 @@ button {
border-radius: 0;
}
+// Explicitly remove focus outline in Chromium when it shouldn't be
+// visible (e.g. as result of mouse click or touch tap). It already
+// should be doing this automatically, but seems to currently be
+// confused and applies its very visible two-tone outline anyway.
+
+button:focus:not(:focus-visible) {
+ outline: 0;
+}
+
// 1. Remove the margin in Firefox and Safari
input,