mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
b21b3ba307
* fix(devtool): do not trigger interaction check for `div` and `span` * add test * add tests * Rephrase changeset * remove log * add reference link * Update .changeset/swift-coats-teach.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
12 lines
419 B
Markdown
12 lines
419 B
Markdown
---
|
|
"astro": patch
|
|
---
|
|
|
|
Fixes a false positive for `div` and `span` elements when running the Dev Toolbar accessibility audits.
|
|
|
|
Those are special elements that don't have an interaction assigned by default. Instead, it is assigned through the `role` attribute. This means that cases like the following are now deemed correct:
|
|
|
|
```html
|
|
<div role="tablist"></div>
|
|
<span role="button" onclick="" onkeydown=""></span>
|
|
```
|