Documenting accessibility per component
making accessibility actionable, not a generic page.
per-component a11y sections, keyboard tables, ARIA roles and states, live examples.
one global accessibility page with no component-specific keyboard or ARIA detail.
What's really being asked
This assesses whether you treat accessibility as concrete, per-component guidance rather than a vague aspiration on one shared page.
The full answer
Every component page gets its own accessibility section that lives next to the props and examples. For Tabs, document the expected keyboard model as a clear table: Tab moves focus into the active tabpanel, arrow keys move between tabs, Home and End jump to the first and last tab, and Enter or Space activates a tab if activation is manual. Document the ARIA structure: the tablist role on the container, tab role on each trigger with aria-selected and aria-controls, and tabpanel role with aria-labelledby. State which behavior the component implements automatically and which the consumer must provide, such as accessible labels. Reference the WAI-ARIA Authoring Practices Guide pattern, and embed a live, focusable example so developers can verify behavior. Pair docs with automated and manual tests so they cannot drift.
The mistakes people make
A single global accessibility page with no component specifics. Listing ARIA roles without keyboard behavior, or vice versa. Documenting the ideal pattern while the component does not actually implement it.
What usually comes next
How do you keep docs in sync with the implementation? How do you document the split between automatic versus manual tab activation? How do you test these interactions?
A concrete example
The Tabs page shows a keyboard table, an ARIA attribute list mapping tablist, tab, and tabpanel, and a note that the consumer must pass a label for the tablist. A live demo lets a developer press arrow keys and watch focus and aria-selected update in real time.
Interview question
What best distinguishes effective per-component accessibility docs for a Tabs group from a generic accessibility page?
- a.It lists the color contrast ratios of the brand palette
- b.It specifies the exact keyboard interactions and ARIA roles, states, and propertiesCorrect
- c.It restates the company's overall accessibility mission
- d.It links only to external standards without component detail
Why? this is the answer
Actionable docs give the precise keyboard model and ARIA attributes a developer needs for that component. A mission statement, bare external links, or palette contrast values do not tell a developer how Tabs should behave.
Just read this? Test yourself on what you have been reading.
Read the original → w3.org
- #accessibility
- #documentation
- #aria
- #keyboard
- #components
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on accessibility — each one lists the topics its interview covers.
See open roles