🐞 fix: Clean up code for production use
This commit is contained in:
1 parent
e8efdbeb34
commit
47d487b3e8
9 files changed
+13
-204
No files matched your search
@@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Add Focus Styling Back
|
||||
* -
|
||||
* On the first "Tab" key press, remove the "zero/hidden" styling of the outline for :focus states.
|
||||
*/
|
||||
|
||||
function AddFocusStylingBack() {
|
||||
function addFocusStylingBack(event) {
|
||||
if (event.key == "Tab") { document.body.classList.add('keyboard-navigation'); }
|
||||
|
||||
document.removeEventListener("keydown", addFocusStylingBack);
|
||||
}
|
||||
|
||||
document.addEventListener("keydown", addFocusStylingBack);
|
||||
}
|
||||
|
||||
export default AddFocusStylingBack;
|
||||
Reference in new issue
Block a user