Posts
-
tab order and tabindex
A keyboard only user, primarily uses
tab
key to reach the actionable controls in a web page. The order in whichfocusable
elements are focused viatab
press, is calledtab order
. When a user pressestab
, browser focuses the nexttabable
element in thetab order
. -
Keyboard Accessibility and Lost Focus
Visual indicator is must for a keyboard user, to identify an active element, so that the user can press the corresponding desired keys, to interact with the active element.
For example,
- pressing
space
on acheckbox
toggles thechecked
status - pressing down arrow on a
select
displays theoptions
list - pressing
space/enter
on a button activates it.
Without a visual indicator a keyboard only user has no clue to identify the active element.
- pressing
-
Show more/less actionable list items
Hide the extra items completely, if you mean it. Otherwise they might be avialable to keyboard only and screen reader users, even though not available for mouse only users.
-
Display focus-indicator for styled radio and checkbox
When styling
radio buttons
andcheckboxes
by hiding them visually and using pseudo-elements, along with pseudo-classes, please ensure to add custom focus indicator.Otherwise, a user accessing the user interface via keyboard, has no idea, what is the active element/field.
- Focus Indicator - Browser(Chrome) Extension