]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Suppress focus outline for buttons when it shouldn't be visible in Chromium
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 10 Jan 2021 14:41:49 +0000 (14:41 +0000)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 13 Jan 2021 09:03:32 +0000 (11:03 +0200)
Manual backport of https://github.com/twbs/bootstrap/pull/32689

scss/_reboot.scss

index 27498c0df4b18ee0ff52cd4c8a6ae5a3ba4b8bd8..cd93bfe240869d111019e7f8e1f68112b5f53abd 100644 (file)
@@ -307,6 +307,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;
+}
+
 input,
 button,
 select,