Accessibility
What Momo does so that everyone can use what you build, by keyboard, by screen reader, by touch, at any zoom, and what is left for you to do.
What Momo does for you
| Area | How |
|---|---|
| Real elements first | Dialogs are <dialog>, accordions are <details>, buttons are buttons. The browser's own behavior comes along: focus stays in a dialog, Esc closes it |
| Keyboard | Everything works without a mouse. Rows of tabs, chips and menu items are one Tab stop, and the arrow keys move inside them. Each component's page lists its keys |
| Focus you can see | A thick ring in a color with enough contrast, shown for keyboard users and not on mouse clicks. Focus returns to where you were when something closes |
| Names and states | Momo sets the roles and keeps aria-expanded, aria-selected, aria-pressed and aria-invalid in step with what is on screen |
| Announcements | Toasts, counts ("3 of 12"), loading and "8 more loaded" are spoken by screen readers without moving the focus |
| Color | Every text and fill pairing is checked for contrast each time Momo is built, in light and in dark. Nothing depends on color alone: wrong fields also get words, states also get icons |
| Motion | Animations switch off or calm down for people who ask for less motion. See Motion |
| Touch | Targets grow on touch screens, fields are 44px tall, and nothing is hidden behind hover. See Phones |
| Zoom and text size | Sizes are in rem, layouts wrap. Pages are checked at 110% and at 375px wide for anything that gets cut off |
| Reading direction | Arabic, Hebrew and other right-to-left languages mirror correctly. See Right-to-left |
What is left for you
- Say the language:
<html lang="en">. Screen readers pick the voice from it. - Label every field with a
<label>. A placeholder is not a label: it disappears when you type. - Name icon-only buttons:
aria-label="Close". And hide decorative icons witharia-hidden="true". - Describe pictures with
alt. If a picture is only decoration, writealt="". - Use headings in order, one
<h1>per page, and wrap the main part in<main>. - Add a skip link as the first thing in the page.
- Write messages that help: "Use at least 8 characters", not "Invalid input".
- Give links real words: "Read the returns policy", not "Click here".
A quick check you can do
- Put the mouse away. Can you reach and use everything with Tab, Shift+Tab, Enter, Space, Esc and the arrow keys? Can you always see where you are?
- Zoom the browser to 200%. Is anything cut off or on top of something else?
- Turn on your device's screen reader and listen to one whole task. Does each control say what it is and what state it is in?
- Turn on "reduce motion" in your device's settings. Does the page calm down?
- Look at the page in dark mode and in a narrow window.
Helpers for this
.visually-hidden: words for screen readers only..skip-link: jump past the menu to the content..focus-ring: Momo's focus ring on your own elements.- Validation: messages tied to their fields.
Honest limits
Using accessible parts does not make a page accessible by itself: the order of things, the words and the pictures are yours. Momo's components are tested with a real keyboard, real pointers and real touch in a browser, at several zoom levels, and their roles and states are checked in those tests. They have not been through a formal audit with assistive technology users. If you find something that does not work with your screen reader, that is a bug.