Accessibility overview
IzzyBlazor targets WCAG 2.2 level AA and follows the ARIA Authoring Practices pattern for each kind of control. Components are built on the browser's own elements, so keyboard, focus and screen readers work the way the platform defines them. IzzyBlazor's script adds ARIA only where it adds behavior.
Native elements first
Buttons are button or a, dialogs are dialog, selects are
select, disclosures are details, and checkboxes, radios and switches are real inputs.
Enter, Space, Escape and the arrow keys do what the user expects, even with JavaScript off.
Where IzzyBlazor's script adds behavior, it adds the roles that go with it. Tabs are a radio group with JavaScript off. Once the script runs, they become ARIA tabs, and the arrow keys move focus between them. A dialog opened by the server becomes a real modal.
Each component's Overview ends with an Accessibility section. It lists the component's roles and keys, and what changes in each render mode.
With JavaScript off
Everything stays usable, but a few things are simpler. Screen readers announce tabs as radio buttons. A dialog opened by the server isn't modal. Keys that IzzyBlazor's script adds, such as a grid's arrow keys, don't work. Each component's Mode support table lists what changes.
How it's checked
- The test suite runs keyboard flows in Chromium, on static and interactive pages. Each flow opens, moves, chooses and closes, and checks where focus lands after each step.
- When a component is built or changed, its examples are checked in Chromium with axe and the accessibility tree.
- A sweep of every example checks that focus shows in the browser's forced colors, which emulates a Windows contrast theme, and that targets are at least 24 by 24 pixels.
- When the page renders, IzzyBlazor calculates the shades of a brand or gray color you set to meet contrast ratios. The built-in themes are tuned to the same ratios.
- izzy audit runs over every page of this site, at two widths, in light, dark and forced colors, and each finding is judged. Component status has the last run.
- A full pass with screen readers (NVDA, JAWS, Narrator, VoiceOver and TalkBack) has started and isn't done. Names, roles and states are checked in the accessibility tree, which is what screen readers read, but that is not the same as listening to one.
A tool checks part of this, and a person the rest: Automated and manual checks says which.
Known gaps
These gaps fall short of WCAG 2.2 AA or come close to it. Each has a workaround today.
- NumberField: the stacked step buttons are 16px tall at the default size, and smaller at the small size or Compact density. Typing the number works instead. To show full-height buttons on each side, set StepButtons="StepButtons.Split".
- Field borders and switch tracks have about 2:1 contrast against the page. WCAG requires 3:1 when a border is the only thing that shows where a control is. Every field also has a visible label above it, so this is a judgment call, and some audits flag it. To meet a strict 3:1, set --ib-color-outline in your theme to a darker gray, such as #8e8e96 on white.
- LiveRegion inside Tabs on a static page: after a search that reloads the page's content, such as a FilterForm's, VoiceOver with Safari doesn't announce the region's change. Other screen readers haven't been checked. The cause is in how Safari treats the tab panel around the region, so put the LiveRegion outside the Tabs. A fix is planned for the release after 0.1.0-alpha.30.
- No full screen reader pass yet. Names, roles and states are checked in the accessibility tree. If a screen reader gets something wrong, report it as an issue.
What's left to your app
Accessible components don't make a page accessible on their own. Your app is still responsible for these:
- A
langon thehtmlelement, and aPageTitleon every page. - One
h1per page and headings in order.Heading'sSizechanges the look, not the level. - Link and button text that makes sense on its own, not "Click here".
- Alt text that describes what a picture shows, and a unit in a field's label when it matters, as in "Price (USD)".
- Contrast for colors you set yourself, and time limits the user can extend.
- Testing your pages with a keyboard and a screen reader: see Testing your app.
In this section
- Keyboard and focus explains where focus goes and lists every component's keys.
- Names and announcements covers labels, which components throw an error without a name, and what screen readers announce when something changes.
- Color, contrast and motion explains how IzzyBlazor keeps contrast with your own colors and in high-contrast mode, and how it handles reduced motion.
- Pointer and touch lists target sizes and the click-only alternative to each drag.
- Component status lists each component's keys, what the automated audit found and which screen readers it was tested with.
- Testing your app explains how to check your own pages.
- Automated and manual checks draws the line between what a tool settles and what a person must check.
- Audit a page and the pages after it cover
izzy audit: verdicts, reports, fixes, builds and what it checks.