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