Inputs and focus
Keep focus visible and predictable, support pointer, touch, and keyboard input, and provide a visible alternative to every gesture.
What the guidance says
- Use familiar gestures and provide another way to perform every important gesture action.
- Keep focus movement predictable and avoid moving focus without a person action.
- Use standard keyboard shortcuts consistently and never override common browser or system shortcuts.
- Provide immediate visible response to pointer, touch, and keyboard activation.
How to apply it on the web
- Use native focus order and add custom order only when visual and document order cannot agree.
- Style
:focus-visible, hover, pressed, selected, disabled, and loading states separately. - Do not make hover reveal the only path to an action or explanation.
- Keep gesture shortcuts optional and expose the same command through a visible control.
What to check
- Can a keyboard user see focus at every step?
- Does focus return to a sensible control after a temporary layer closes?
- Are hover actions also available through focus and touch?
- Can every gesture based action be completed another way?