0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/.changeset/swift-coats-teach.md
Emanuele Stoppa b21b3ba307
fix(devtool): do not trigger interaction check for div and span (#10719)
* 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>
2024-04-09 12:36:48 +01:00

419 B

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:

<div role="tablist"></div>
<span role="button" onclick="" onkeydown=""></span>