]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Suppress focus outline for buttons when it shouldn't be visible in Chromium (#32689)
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 10 Jan 2021 10:42:26 +0000 (10:42 +0000)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 10:42:26 +0000 (10:42 +0000)
Follow-up to https://github.com/twbs/bootstrap/pull/32631

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
scss/_reboot.scss

index 58e1a34d0275f625a39672a1a9ca20eddaa11cc7..973b5d16c70209e1bd7ad1d9ca79398598353e6c 100644 (file)
@@ -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,