> For the complete documentation index, see [llms.txt](https://docs.nickarce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nickarce.com/etch-drawer/customization/accessibility.md).

# Accessibility

## What's built in

* Drawers receive `role="dialog"` (modal) or `role="region"` (passive) with `aria-modal="true"`
* The first heading inside the drawer is linked via `aria-labelledby`
* A live region announces "Dialog opened" / "Dialog closed" (or "Notification" for passive drawers) to screen readers
* Focus moves to the first focusable element inside the drawer on open — passive drawers skip focus management
* Tab and Shift+Tab are trapped within the drawer to prevent focus from escaping behind the overlay
* Focus returns to the trigger element when the drawer is dismissed
* All drawer content is hidden from screen readers when `data-state` is `closed`
* Overlays are marked `aria-hidden="true"` — they are decorative
* Drag handles receive a descriptive `aria-label`
* On snap drawers, the drag handle becomes a slider. The arrow keys move between snap points, Home and End jump to either end, and moving below the smallest snap point closes the drawer. Each move is announced, like "Drawer position 2 of 3".
* Snap navigation buttons (`data-snap-to`) get `aria-disabled="true"` when they have nowhere to go, so the dead end is announced instead of silently doing nothing. `data-snap-to="toggle"` is never disabled and uses `aria-expanded` instead, which is `true` at full height. See [Snap navigation buttons](https://docs.nickarce.com/etch-drawer/customization/behavior.md#snap-navigation-buttons).

## Passive mode differences

Passive drawers use `role="region"` instead of `role="dialog"` and do not trap focus or lock body scroll, since they are non-modal notifications. See [Core Behavior — Passive mode](https://docs.nickarce.com/etch-drawer/customization/behavior#passive-mode) for more detail.
