What is a keyboard trap?
A component that focus can enter with the keyboard but cannot leave with standard keys such as Tab, Shift+Tab or Escape. WCAG 2.1.2 No Keyboard Trap forbids it at Level A.
Which WCAG criteria cover keyboard accessibility?
Mainly 2.1.1 Keyboard, 2.1.2 No Keyboard Trap, 2.1.4 Character Key Shortcuts, 2.4.3 Focus Order, 2.4.7 Focus Visible and, in WCAG 2.2, 2.4.11 Focus Not Obscured (Minimum).
Is it acceptable to remove the focus outline?
Only if you replace it with another clearly visible focus style. Removing it without a replacement fails WCAG 2.4.7 Focus Visible.
Should every element be focusable?
No. Only interactive elements, such as links, buttons and form controls, should be in the tab order. Making headings or paragraphs focusable adds noise for keyboard users.
How do I test keyboard access on a Mac?
Turn on Keyboard navigation in System Settings, and in Safari enable Press Tab to highlight each item on a webpage. Other browsers on macOS follow the system setting.
Does keyboard testing replace screen reader testing?
No. Keyboard testing checks that everything can be reached and operated; screen reader testing checks that it is announced in a meaningful way. Do both.