/** * 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;