mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -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>
419 B
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>