You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add highlight button and bump @accesslint/vitest to 0.8.4
- Add Highlight toggle in violation details to outline the failing
element in the Storybook preview using built-in highlight events
- Define HIGHLIGHT/REMOVE_HIGHLIGHT constants for the manager context
- Strip iframe-piercing selector prefix before highlighting
- Bump @accesslint/vitest to ^0.1.4 (fixes selector scoping in
toBeAccessible matcher)
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ export default config;
26
26
27
27
Restart Storybook and an **AccessLint** panel will appear in the addon bar. Every story is audited automatically after it renders.
28
28
29
+
Expand any violation to see the failing element, WCAG criteria, and remediation guidance. Click **Highlight** to outline the element in the preview.
30
+
29
31
## Vitest integration
30
32
31
33
If you use [`@storybook/addon-vitest`](https://storybook.js.org/docs/writing-tests/vitest-plugin), add the AccessLint plugin next to `storybookTest()` in your Vite config:
0 commit comments