<project · advanced>
Accessible component kit
Build tabs, a modal and a menu that work fully with a keyboard and a screen reader, with tests.
Build accessible component kit one manageable milestone at a time. Keep your decisions, tests and finished work together so your portfolio shows what you learned, not only the final result.
- ARIA
- Keyboard interaction
- Focus management
- Testing
Build it step by step
Choose component contracts
Create a demo page for tabs, a modal and a menu. Read the WAI-ARIA Authoring Practices patterns and write down the keyboard behaviour for each component.
Build the tabs
Connect tab buttons to labelled panels with stable IDs. Implement arrow-key navigation, selected state and one tab stop for the tab list.
Build the modal
Use the native dialog element where possible. Give it an accessible name, focus the first useful control, close with Escape and return focus to the opener.
Build the menu
Implement a menu button with expanded state and a labelled menu. Support arrow keys, Escape and closing after an action without losing focus.
Prove the interactions
Write Playwright checks for keyboard navigation and focus restoration. Run axe-core and manually inspect the components with a screen reader; automated checks alone are not enough.
Share your finished work
Commit your source and a README explaining setup, decisions, tests and limitations. Remove secrets and personal data, credit dependencies and assets, then add the public repository or portfolio link and an optional working demo to LEARN Showcase. Hosting is optional; a clear repository or design case study is enough.
// done when
- Tabs support arrow keys
- Modal restores focus after closing
- Menu closes with Escape
- Automated checks and manual keyboard checks pass
- README includes setup, credits and limitations; shared links are safe and accessible
// stretch goals
- Add reusable component documentation
- Test in a second browser
Finished? Show it off
Add your project to the LEARN showcase so other learners and employers can see it.
Sign in to add your finished project to the showcase.