Open mett-development opened 4 years ago
Will be available in quasar v1.12.12
QFab and QFabAction should be fixed by 31f3d7d52226e93b211d47c6cfce2a2b781bad1d
QButton and QCheckbox (and some other) should be fixed in a95591ec6f1fad6ee795f5f8c8298a5ed056a248
Is your feature request related to a problem? Please describe. As I was going through our application with the Firefox accessibility tab I noticed a few things that are not conform the WCAG guidelines, or atleast Firefox is flagging them.
Here is an explanation about the guidelines that Firefox expects regarding keyboard access: Link
I will list the issues I have come accross, so we can discuss what the best solution in each case might be. Of course this is not a full list of every issue in Quasar, because we only use a subset of components.
QDialog
aria-hidden="true"
to this element to exclude it from screen readers etc. as users can close it by using 'Esc'QDrawer
aria-hidden="true"
to this element to exclude it from screen readers etc.q-drawer__opener
which I guess is used to capture swipes to open? This component also has click listener but no focus or keyboard operation Solution: Use aria-hidden.aside
element which also has a click listener but no focus/keyboard operation. Solution: Use aria-hidden.QScrollArea
QFab
aria-label
to be present to indicate what the button does. However it is currently not possible to pass an aria-label to the underlying component. Solution: Transfer the aria-label attribute set on the QFab to the actual button it creates under the hood.QFabAction
QItem
QCarousel
arrows
andnavigation
buttons get added which have no aria-labels. Solution: This one can be worked around by using template slot but I would be prettier if Quasar provided a solution. However you would need control over what is used as an aria-label for each of the dynamically added buttons. So you can also use different translations etc. Not sure what the best approach here is.fullscreen
but we do not use that.QButton
aria-diabled="true"
. Now it only hasaria-disabled=""
.QCheckbox
alt
tag or should havearia-hidden="true"