Accessibility
Keyboard accessibility
Make interactive pages usable without a mouse.
On this page
Follow the natural order
Use source order to match the visual reading order. Avoid positive tabindex values, which create a separate and confusing focus order.
Keep focus visible
Do not remove the outline unless an equally visible replacement is provided. Make controls large enough and distinguish focus from hover.
Test real interactions
Tab through navigation, activate buttons with Space or Enter, and ensure dialogs can be dismissed. Automated checks cannot replace manual testing.
Example
:focus-visible {
outline: 3px solid #1769aa;
outline-offset: 4px;
}