From: Mark Otto Date: Tue, 8 Dec 2015 05:57:06 +0000 (-0800) Subject: fixes #18330 X-Git-Tag: v4.0.0-alpha.2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6a12872887a4a1288541ac904ae040e31cf648;p=thirdparty%2Fbootstrap.git fixes #18330 --- diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 8b9420cf16..a3e4175a46 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