Provide some sort of visual indicator to indicate which element has the keyboard focus. If the browser provides a default presentation, do not use styles to remove it. (You may replace it with a different presentation more in keeping with your site design)
2.4.7 Focus Visible: Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible. (Level AA)
How to fix:
- Use the
:focusCSS pseudo element to indicate which element has the user focus.
- Do not use this pseudo element to remove all visual treatment of the focused element
- Via scripting, use the
onblurevent handlers to add style treatments, for browsers that do not support the
:focuspseudo element natively.