mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
79ffa5d9f7
* fix(dev-toolbar): false positive in Audit with a11y check on labels * test: add e2e test for a11y audit on labelable elements * docs: complete changeset to explain why this is a problem
7 lines
394 B
Markdown
7 lines
394 B
Markdown
---
|
|
'astro': patch
|
|
---
|
|
|
|
Fixes a false positive reported by the dev toolbar Audit app where a label was considered missing when associated with a button
|
|
|
|
The `button` element can be [used with a label](https://www.w3.org/TR/2011/WD-html5-author-20110809/forms.html#category-label) (e.g. to create a switch) and should not be reported as an accessibility issue when used as a child of a `label`.
|