From e26893fcc6d970c11ca86b771cdc24658892c569 Mon Sep 17 00:00:00 2001 From: Michaela Date: Thu, 25 Mar 2021 09:08:15 +0100 Subject: [PATCH] Remove unnecessary selector 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. --- lib/styles/trackInputModality.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/styles/trackInputModality.js b/lib/styles/trackInputModality.js index 4f37e8b68..7ee63bd66 100644 --- a/lib/styles/trackInputModality.js +++ b/lib/styles/trackInputModality.js @@ -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');