Accessibility

What the library does today, read from the component code and the CSS, and what it does not do yet. It is a work in progress, not a claim of WCAG conformance.

Keyboard

EscapeCloses Modal, Drawer, BottomSheet, StepDialog, FullscreenDialog, CommandPalette, Tour and Screensaver. Closes the open list of Select, Dropdown, Menu, Popover and the other popups; focus returns to the trigger.
Tab / Shift+TabInside the dialogs above focus is trapped: it wraps from the last control to the first and back. On open, focus moves to the first control (or the element marked autofocus) and returns to the previous element on close.
Arrow Up / Down, EnterCommandPalette: moves the active option (the input uses aria-activedescendant) and runs it.
Arrow Left / Right, Home, EndTabs, PillTabs and SegmentedControl: one tab stop (roving tabindex on the selected item); the arrows move focus between items and wrap, Home and End jump to the ends, Enter or Space activates. Mirrored in RTL; vertical PillTabs use Arrow Up / Down. Carousel: previous and next slide. Tour: previous and next step, mirrored in RTL.
Arrow Up / Down, Home, End, EnterSelect, PillSelect, Dropdown, Menu and ContextMenu: Arrow Down or Up on the trigger opens the list; focus moves into it (the selected option, or the first item) and the arrows move real focus. Menus wrap, listboxes stop at the ends, typing a letter jumps to a matching item, disabled items and separators are skipped. Enter or Space chooses and focus returns to the trigger; Tab closes the list and continues from the trigger.
ComboboxWAI-ARIA combobox: the input has role="combobox" with aria-expanded, aria-controls and aria-activedescendant, focus stays in the input. Arrow Down or Up opens the list and moves the active option (wraps, skips disabled), Enter chooses it, Escape closes.
MultiSelect, GroupedSelectSame list pattern as Select: arrows move real focus between options (across groups in GroupedSelect), Home and End, type-ahead, Space or Enter toggles or chooses, Escape and Tab close. MultiSelect stays open while picking.
DatePicker, Calendar, RangeCalendarOne tab stop on the day grid. Arrows move by day (Left and Right mirrored in RTL) or week, Home and End jump to the start and end of the week, PageUp and PageDown change month (with Shift, year), disabled days are skipped, Enter or Space picks. Arrow Down or Up on the DatePicker trigger opens it and focus lands on the selected day; Escape closes and returns focus to the trigger. RangeCalendar previews the range as focus moves.
TreeSelectThe search field is outside role="tree". Arrow Down in the field enters the tree at the selected item; Up and Down move between visible items, Right expands or enters, Left collapses or goes to the parent (mirrored in RTL), Home, End, type-ahead, Enter chooses, Escape closes.
TooltipEscape hides a shown tooltip (hover or focus) without moving focus; it stays visible while the pointer is over the trigger or the bubble and returns on the next hover or focus (WCAG 1.4.13).
Enter / SpaceButtons, switches, checkboxes, tabs and options are real button elements, so the browser handles activation.

Roles, labels and focus

Dialogsrole="dialog" with aria-modal and aria-label from the title (Modal, FullscreenDialog, ImageViewer, Screensaver); Tour is a dialog labelled "Tour".
Form controlsSwitch, Checkbox, OptionCard, Rating and RadioGroup carry role and aria-checked; Select and similar pickers expose role="listbox" with role="option" and aria-selected; field errors use role="alert".
TabsTabs and PillTabs use role="tablist", role="tab" and aria-selected (tabs are activated manually, with Enter or Space). SegmentedControl is a group of aria-pressed buttons.
TooltipThe wrapper points to a visually hidden element with role="tooltip" and the same text through aria-describedby, so the text is read when the trigger gets focus. The bubble itself is still drawn by CSS on hover and focus.
NamesEvery listbox opened by a picker is named from its label or placeholder, Progress has an accessible name (its label, or a translated "Progress"), scrollable code blocks and table wrappers are focusable so keyboard users can scroll them.
StatusToast and Snackbar use role="status", Alert uses role="alert", Spinner has an aria-label, Chat messages are a polite live log.
CarouselRegion with aria-roledescription="carousel", slides announced politely when autoplay is off, previous and next buttons labelled.
Icon buttonsIcon-only buttons inside components get an aria-label ("More", "Previous", "Next"). The label text can be overridden through props where the component exposes one.
Focus ringButtons, icon buttons, chips, links, options and inputs show a :focus-visible ring in the brand color.

Motion

  • With prefers-reduced-motion: reduce, transitions and animations inside .zg-root are cut to near zero, and popup, modal and sheet entrance animations are turned off.
  • The data-motion attribute on <html> (on or off) lets users override the system setting. useUiTheme().setMotion('auto|on|off') sets it; auto follows the system and the init script applies it before first paint.
  • Heavy effects (data-fx) can be set to lite; the animated page-background drift runs only at the full level.

Themes and direction

  • Dark and light themes and two palettes are switched with data-theme and data-palette; the Colors page shows every token in both themes.
  • RTL is set with dir="rtl" on <html> (setLocale('ar')). Component styles use logical properties (inset-inline, padding-inline) plus [dir="rtl"] overrides, and keyboard shortcuts that depend on direction, like Tour arrows, are mirrored.

Not covered yet

Touch tooltipsThe tooltip bubble is shown on hover and keyboard focus only, not on touch.
Date gridCalendar, DatePicker and RangeCalendar are a group of day buttons with a roving tabindex, not a role="grid" with rows; a day is announced by its number (with the month in the group name), not by a full date. "Today" is read from the browser clock after mount, so server-rendered HTML marks no day unless you pass the today prop.
Combobox detailsHome and End keep moving the text caret inside the input (they do not jump in the list), there is no automatic first-match selection, and a second Escape does not clear the text.
ContrastMeasured with axe on 35 pages in both themes and both palettes (see below), but only on what is rendered: placeholder text, disabled controls (exempt from WCAG), text on the animated backgrounds and states that need a hover are not covered.
Map, drag and dropMap pans with the pointer only. Sortable lists are driven by drag; there is no keyboard way to reorder.
Screen reader testingNo manual testing with NVDA, JAWS or VoiceOver has been recorded. axe finds about a third of WCAG issues at most, so treat the roles above as intent, not a verified result.
Component stringsBuilt-in labels are translated for en, ar and ru (free) and 13 more languages in the Pro pack; some components still show English only, see the Localization page.

The full plan is on the roadmap.

Automated audit (axe)

Run with npm run a11y (scripts/a11y.mjs, axe-core with the WCAG 2.0 and 2.1 A and AA tags, headless Chrome) against the docs site. It covers the home page, 27 component pages, the dashboard, auth, settings and inbox templates, this page, Localization and Colors, each in dark and light, in the gold and tamam palettes, and with every popup trigger opened (--open).

Before the fixes563 violating nodes in 6 rules on 32 pages x 2 themes: aria-required-children 410 (docs props table), label-content-name-mismatch 64 (docs search button), scrollable-region-focusable 48 (code blocks), aria-progressbar-name 28 (Progress), color-contrast 11 (text-3 on table headers, brand KPI, danger button), aria-hidden-focus 2 (home hero).
After the fixes0 violations on 35 pages (the 33 above plus Combobox and MultiSelect) x 2 themes x 2 palettes, with popups closed and open (38 to 39 rules passed). The gold run used a docs build with the Pro package, so GroupedSelect, TreeSelect, RangeCalendar, CalendarView and Screensaver were audited too, lists open; the tamam run used the free build with Pro placeholders.
Fixed in the libraryProgress name, focusable code blocks and table wrappers, listbox names, DatePicker aria-pressed="null", text-3 in dark (0.66 to 0.74 lightness), brand KPI label and delta opacity, danger button text (new --zg-red-text token). Fixed in the docs site: props table cell roles, search button name, inert hero preview, contrast of the Pro placeholder link (found in the second run). TreeSelect: the search input moved out of role="tree", which removed the 12 aria-required-children nodes.
Not measurable by axeKeyboard behaviour (covered by browser tests instead), placeholder contrast, tooltip dismissal and screen reader output.

axe checks rules it can decide automatically. A clean run is not a conformance claim.

Report an issue

Found a barrier? Open an issue with the component name, what you tried (keyboard, screen reader and browser), and what happened. Reproductions on the docs site are the fastest to fix.