xxshna.ui
V 1.1.0Get started ↗
Guides / Accessibility

Accessibility

Standards-based semantics, native behaviors and explicit keyboard contracts—not decorative imitation.

Baseline principles

Prefer real button, input, dialog, details, tables and labels. Use WAI-ARIA for advanced patterns only where native HTML does not expose the required role. The supplied components are designed toward WCAG 2.2 AA patterns, but accessibility compliance depends on application content and requires independent assistive-technology review.

Keyboard interaction

ComponentExpected keyboard behavior
Dialogs & drawersTab / Shift+Tab stay within the native modal; Escape closes.
Dropdown menusArrow keys select items; Home/End jump; Escape closes.
TabsArrow Left/Right and Home/End select tabs.
ComboboxesArrow keys navigate results, Enter accepts and Escape dismisses.
AccordionEnter/Space toggle the native summary.
SwitchesSpace toggles checked state; Tab moves focus.

Labels and validation

Each input needs a visible label or equivalent accessible name. Connect dynamic validation messages with aria-describedby; preserve native constraint validation. Dynamic status events must have appropriate status semantics.

Verification expectations

Run screen-reader checks using VoiceOver, NVDA or equivalent. Test keyboard-only navigation, high-contrast modes, zoom, mobile layouts, language changes and reduced motion on your final product. Passing automated checks alone does not certify WCAG conformance.