Skip to content

Commit

Permalink
Remove unnecessary selector
Browse files Browse the repository at this point in the history
The library that inspired this code uses
`modality` body attribute to save/retrieve
modality information but we don't use it
and keep modality information in
`globalThemeState.inputModality` instead.
  • Loading branch information
MisRob committed Mar 25, 2021
1 parent 8590544 commit e26893f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/styles/trackInputModality.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function setUpEventHandlers(disableDefaultFocusRing) {
})();

const disableFocusRingByDefault = function() {
const css = 'body:not([modality=keyboard]) :focus { outline: none; }';
const css = 'body :focus { outline: none; }';
const head = document.head || document.getElementsByTagName('head')[0];
const style = document.createElement('style');

Expand Down

0 comments on commit e26893f

Please sign in to comment.