aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-12-07 21:57:06 -0800
committerMark Otto <[email protected]>2015-12-07 21:57:06 -0800
commit5a6a12872887a4a1288541ac904ae040e31cf648 (patch)
tree10b277405c7270d2955a1d933742515467969d04
parente5b692225846d7d1d6feb7de2a73f1608d2a0731 (diff)
downloadbootstrap-5a6a12872887a4a1288541ac904ae040e31cf648.tar.xz
bootstrap-5a6a12872887a4a1288541ac904ae040e31cf648.zip
fixes #18330
-rw-r--r--scss/_reboot.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index 8b9420cf1..a3e4175a4 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -77,6 +77,15 @@ body {
background-color: $body-bg;
}
+// Suppress the focus outline on elements that cannot be accessed via keyboard.
+// This prevents an unwanted focus outline from appearing around elements that
+// might still respond to pointer events.
+//
+// Credit: https://github.com/suitcss/base
+[tabindex="-1"]:focus {
+ outline: none !important;
+}
+
//
// Typography