# a11y-dialog

> A tiny script to make dialog windows accessible to assistive technology users.

Latest version **8.1.5** (published 2026-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install a11y-dialog
pnpm add a11y-dialog
yarn add a11y-dialog
bun add a11y-dialog
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.1.5 |
| Published | 2026-02-06 |
| First published | 2016-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 86.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2490 |
| Author | Kitty Giraudel |
| Maintainers | kittygiraudel |
| Keywords | modal, dialog, accessibility, a11y, focus |

## Links

- npm: https://www.npmjs.com/package/a11y-dialog
- Repository: https://github.com/KittyGiraudel/a11y-dialog
- Homepage: https://a11y-dialog.netlify.app/
- Issues: https://github.com/KittyGiraudel/a11y-dialog/issues
- npm.io page: https://npm.io/package/a11y-dialog

## Dependencies (1)

- [focusable-selectors](https://npm.io/package/focusable-selectors.md) ^0.8.0

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 8.1.5 (latest) — 2026-02-06
- 7.5.3 (v7/safari-focus-fix) — 2023-07-22
- 6.1.2 (v6/safari-focus-fix) — 2023-07-22
- 8.0.0-rc.1 (next) — 2023-02-05
- 8.1.4 — 2025-06-30
- 8.1.3 — 2025-04-02
- 8.1.2 — 2025-03-27
- 8.1.1 — 2024-09-09
- 8.1.0 — 2024-08-18
- 8.0.4 — 2023-10-03
- 8.0.3 — 2023-10-02
- 8.0.2 — 2023-09-30
- 8.0.1 — 2023-08-09
- 8.0.0 — 2023-07-22
- 7.5.2 — 2022-08-17
- … 56 more at https://npm.io/package/a11y-dialog/versions

## README

# [A11y Dialog](https://a11y-dialog.netlify.app)

This is a lightweight (1.7Kb) yet flexible script to create accessible dialog windows.

- [Documentation ↗](https://a11y-dialog.netlify.app)
- [Demo on CodeSandbox ↗](https://codesandbox.io/s/a11y-dialog-v8-5gqfz8)

## Features

- Follows the [Dialog (Modal) pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialogmodal/) from the ARIA Authoring Practices Guide (APG)
- Supports [alert dialogs](https://w3c.github.io/aria/#alertdialog) as per the WAI-ARIA specifications
- Supports nested dialogs (however questionable)
- Exposes events to react to changes
- Provides both a DOM and a JavaScript API
- Plays nicely with Shadow DOM and web components
- Is unopinionated with styling
- Is extensively tested and documented
- Is fast and tiny

## Contributing

Contributing guidelines can be found in [CONTRIBUTING.md](https://github.com/KittyGiraudel/a11y-dialog/blob/main/CONTRIBUTING.md)

---
_Source: https://npm.io/package/a11y-dialog · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
