Skip to contentWolf-Rayet

Accessibility

What the components do for you, and what you still have to do yourself.

Focus

Every control that takes focus draws the same ring: 2px of #4688EC, offset by 2px, outside the box so nothing shifts. Tab through these.

Labels

An icon button takes a label and renders it as aria-label. A field takes a label element tied to it by id.

What the components handle

BehaviourWhere
Escape closes the layerModal, drawer, popup, dropdown menu.
A click outside closes the layerPopup, dropdown menu, and the blanket under a modal or drawer.
aria-current marks the current itemRail, tabs, pagination, breadcrumbs.
aria-expanded on a disclosureDropdown menu, accordion, table tree.
role and aria-modal on a dialogModal, drawer.
Live values announcedProgress bar, meter, spinner.

What you still have to do

YoursWhy
Give every icon button a labelThe component renders it, but only you know the action.
Tie a label to its fieldhtmlFor and id, or an aria-label where no visible label exists.
Write the error, not just the stateAn invalid field is drawn red. The message says what to fix.
Keep focus order the reading orderThe components do not reorder the DOM. Your layout can.