Skip to content

Commit

Permalink
feat(reboot): rely on :focus-visible polyfill to remove default outli…
Browse files Browse the repository at this point in the history
…nes on mouse events
  • Loading branch information
ffoodd committed May 20, 2020
1 parent 48e55f9 commit e538cb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ body {
outline: 0 !important;
}

// Using the :focus-visible polyfill to hide outline defensively
// See https://github.com/WICG/focus-visible
.js-focus-visible :focus:not([data-focus-visible-added]),
.js-focus-visible .focus:not([data-focus-visible-added]) {
outline: 0 !important;
}


// Content grouping
//
Expand Down

0 comments on commit e538cb0

Please sign in to comment.