Skip to content
v0.9.1
Guides

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

AreaHow
Real elements firstDialogs are <dialog>, accordions are <details>, buttons are buttons. The browser's own behavior comes along: focus stays in a dialog, Esc closes it
KeyboardEverything 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 seeA 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 statesMomo sets the roles and keeps aria-expanded, aria-selected, aria-pressed and aria-invalid in step with what is on screen
AnnouncementsToasts, counts ("3 of 12"), loading and "8 more loaded" are spoken by screen readers without moving the focus
ColorEvery 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
MotionAnimations switch off or calm down for people who ask for less motion. See Motion
TouchTargets grow on touch screens, fields are 44px tall, and nothing is hidden behind hover. See Phones
Zoom and text sizeSizes are in rem, layouts wrap. Pages are checked at 110% and at 375px wide for anything that gets cut off
Reading directionArabic, Hebrew and other right-to-left languages mirror correctly. See Right-to-left

What is left for you

  1. Say the language: <html lang="en">. Screen readers pick the voice from it.
  2. Label every field with a <label>. A placeholder is not a label: it disappears when you type.
  3. Name icon-only buttons: aria-label="Close". And hide decorative icons with aria-hidden="true".
  4. Describe pictures with alt. If a picture is only decoration, write alt="".
  5. Use headings in order, one <h1> per page, and wrap the main part in <main>.
  6. Add a skip link as the first thing in the page.
  7. Write messages that help: "Use at least 8 characters", not "Invalid input".
  8. Give links real words: "Read the returns policy", not "Click here".

A quick check you can do

  1. 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?
  2. Zoom the browser to 200%. Is anything cut off or on top of something else?
  3. 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?
  4. Turn on "reduce motion" in your device's settings. Does the page calm down?
  5. Look at the page in dark mode and in a narrow window.

Helpers for this

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.

Start

OverviewStart Getting startedStart CustomizeStart

Guides

AccessibilityGuides BreakpointsGuides ChangelogGuides Customize componentsGuides JavaScriptGuides MotionGuides OptimizeGuides PhonesGuides RebootGuides Right-to-left (RTL)Guides Stacking orderGuides Using Momo with AIGuides

Foundations

ColorsFoundations TypographyFoundations ProseFoundations Images & figuresFoundations CodeFoundations Lines & shadowsFoundations Dark modeFoundations

Forms

Checkbox & switchForms ComboboxForms Date pickerForms Date rangeForms Fields & labelsForms File uploadForms Floating labelsForms Number stepperForms PasswordForms PIN codeForms RatingForms SelectForms SliderForms Tag inputForms Time pickerForms ValidationForms

Components

AccordionComponents Alert & bannerComponents AvatarComponents BadgeComponents BreadcrumbComponents ButtonComponents Button groupComponents CalendarComponents CardComponents CarouselComponents ChartsComponents ChipsComponents CollapseComponents Command paletteComponents CommentsComponents Confirm dialogsComponents Cookie bannerComponents Data tableComponents Description listComponents Dialog & toastComponents DividerComponents DrawerComponents Dropdown menuComponents Empty stateComponents File managerComponents Filter & sortComponents Gallery & lightboxComponents Inbox & chatComponents Infinite scrollComponents KanbanComponents Keyboard shortcutsComponents List groupComponents MarqueeComponents Media objectComponents Nav overflowComponents Notification centerComponents PaginationComponents ProgressComponents Pull to refreshComponents SkeletonComponents SortableComponents SpinnerComponents Split viewComponents Stat cardComponents Steps & wizardComponents Swipe actionsComponents TableComponents TabsComponents TimelineComponents TogglerComponents Tooltip & popoverComponents TourComponents Tree viewComponents VideoComponents WhiteboardComponents

Layout

Announcement barLayout App shellLayout Back to topLayout Container & sectionLayout ExamplesLayout FooterLayout HeroLayout JumbotronLayout Mega menuLayout NavbarLayout Site sidebarLayout

Sections

Bento gridSections Blog cardsSections Call to actionSections Contact & newsletterSections FAQSections FeaturesSections Logo cloudSections PricingSections TeamSections TestimonialsSections

Utilities

OverviewUtilities State variantsUtilities Display & flexUtilities Grid & gapUtilities SpacingUtilities SizingUtilities TextUtilities Links & color strengthUtilities Position & overflowUtilities BackgroundsUtilities Borders & effectsUtilities Transforms & filtersUtilities InteractionsUtilities

Helpers

Fixed, sticky & frostedHelpers Hover & focusHelpers Hover revealHelpers Icon linkHelpers PrintHelpers Relative timeHelpers Screen reader textHelpers Scroll inHelpers ScrollspyHelpers Share buttonHelpers Skip linkHelpers StacksHelpers Stretched linkHelpers Theme toggleHelpers Truncated textHelpers

Page patterns

404 pagePage patterns Coming soonPage patterns Login & registerPage patterns SettingsPage patterns ProfilePage patterns CRM contactsPage patterns ProjectsPage patterns File manager pagePage patterns Billing & plansPage patterns Help centerPage patterns Mobile app screensPage patterns
↑ ↓ moveEnter openEsc close