QInput uses not-allowed aria-readonly attribute #16705
Labels
area/a11y
Accessibility
area/components
area/composables
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
Our app needs to comply with WCAG guidelines, which is why we plan to integrate automated checks into our build pipeline as a first stop, prior to manual checks. We strive to reduce the amount of (sometimes non-critical or even purely technical as per specs) errors reported by Lighthouse et al., so that the important errors stay visible.
Currently, a q-input field set up as readonly causes an error "[aria-*] attributes do not match their roles" in Lighthouse (same as "Elements must only use supported ARIA attributes" in AxeDevTools).
What did you expect to happen?
The
<label>
element should not be usingaria-readonly="true"
. Screenreaders will use the the HTML-nativereadonly
attribute on the<input>
field to properly announce read-only state to the user.Reproduction URL
https://codepen.io/hennzen/pen/abXgpwy
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar), Composables (quasar), Accessibility [a11y] (quasar)
Platforms/Browsers
Firefox, Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: