@ngbracket/a11y-devtools 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/inpage.global.js +529 -529
- package/dist/keyboard/tab-sequence.js +4 -1
- package/dist/provider.d.ts +17 -0
- package/dist/provider.js +66 -11
- package/dist/toggle.d.ts +61 -0
- package/dist/toggle.js +173 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to `@ngbracket/a11y-devtools` are documented here.
|
|
4
4
|
This project adheres to [Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
## 0.11.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- **Turn the devtools on and off without changing code.** An on/off pill sits in
|
|
11
|
+
the bottom-left corner, and **Alt+Shift+A** does the same from the keyboard. Off
|
|
12
|
+
means no scanning and nothing drawn, so it costs nothing while hidden. The choice
|
|
13
|
+
is remembered in `localStorage`, so it stays off across reloads until you turn it
|
|
14
|
+
back on.
|
|
15
|
+
- New provider options: `enabled` (the starting state before a developer has
|
|
16
|
+
chosen; default `true`), `pill` (a corner, or `false` to hide it; default
|
|
17
|
+
`'bottom-left'`) and `shortcut` (e.g. `'Ctrl+Alt+K'`, or `false`; default
|
|
18
|
+
`'Alt+Shift+A'`). Letter and digit shortcuts match the physical key, so
|
|
19
|
+
Alt/Option combinations work on macOS.
|
|
20
|
+
- The pill is a `role="switch"` button with visible on/off text and a 28px
|
|
21
|
+
target. It's excluded from scans and from the tab-order layer, like the rest of
|
|
22
|
+
the overlay. New exports: `createTogglePill`, `parseShortcut`, `matchesShortcut`,
|
|
23
|
+
`formatShortcut`, `readStoredEnabled`, `writeStoredEnabled`,
|
|
24
|
+
`DEFAULT_TOGGLE_SHORTCUT`, `TOGGLE_STORAGE_KEY` and their types.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- `tabSequence` leaves out elements inside the overlay's own UI
|
|
29
|
+
(`[data-ngb-a11y-overlay]`), so the pill never appears as a tab stop or counts
|
|
30
|
+
as focus escaping a modal.
|
|
31
|
+
|
|
6
32
|
## 0.10.1
|
|
7
33
|
|
|
8
34
|
### Fixed
|
package/README.md
CHANGED
|
@@ -15,7 +15,8 @@ Part of the `@ngbracket` Angular tooling family.
|
|
|
15
15
|
walking past UI-library components (Material, CDK, Nebular, …) to yours. Uses
|
|
16
16
|
Angular's documented dev debug API (`window.ng`).
|
|
17
17
|
- **In-app provider**: rescans as the app settles; grouped console output and an
|
|
18
|
-
optional on-page overlay.
|
|
18
|
+
optional on-page overlay. Switch it on and off with the on-page pill or
|
|
19
|
+
Alt+Shift+A; the choice is remembered.
|
|
19
20
|
- **Report mode**: scan many routes headless from the CLI; Markdown, JSON and a
|
|
20
21
|
self-contained HTML report.
|
|
21
22
|
- **CI gating with a baseline**: fail only on *new* issues, so an app with known
|
package/dist/index.d.ts
CHANGED
|
@@ -9,3 +9,4 @@ export { findUncontainedModals, type UncontainedModal } from './keyboard/focus-t
|
|
|
9
9
|
export { createFocusWalkProbe, detectTabTrap, type FocusObservation, type FocusWalkProbe, type TabWalkVerdict, } from './keyboard/focus-walk.js';
|
|
10
10
|
export { describeElement, accessibleDescription, ariaStates, type AxDescription, } from './keyboard/accname.js';
|
|
11
11
|
export { createOverlay, OVERLAY_ATTR, OVERLAY_EXCLUDE_SELECTOR, type A11yOverlay, type OverlayOptions, type AxPanelData, } from './overlay.js';
|
|
12
|
+
export { createTogglePill, parseShortcut, matchesShortcut, formatShortcut, readStoredEnabled, writeStoredEnabled, DEFAULT_TOGGLE_SHORTCUT, TOGGLE_STORAGE_KEY, type PillPosition, type Shortcut, type TogglePill, type TogglePillOptions, } from './toggle.js';
|
package/dist/index.js
CHANGED
|
@@ -9,3 +9,4 @@ export { findUncontainedModals } from './keyboard/focus-trap.js';
|
|
|
9
9
|
export { createFocusWalkProbe, detectTabTrap, } from './keyboard/focus-walk.js';
|
|
10
10
|
export { describeElement, accessibleDescription, ariaStates, } from './keyboard/accname.js';
|
|
11
11
|
export { createOverlay, OVERLAY_ATTR, OVERLAY_EXCLUDE_SELECTOR, } from './overlay.js';
|
|
12
|
+
export { createTogglePill, parseShortcut, matchesShortcut, formatShortcut, readStoredEnabled, writeStoredEnabled, DEFAULT_TOGGLE_SHORTCUT, TOGGLE_STORAGE_KEY, } from './toggle.js';
|