quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[V1][Feature] Better a11y support (low prio)

Open solaris7791 opened this issue 7 years ago • 5 comments

Hello, currently only some aria attributes are set in quasar components. It would be great if all quasar components (like radio buttons, selects, buttons, tabs, etc.) would provide correct aria tags. Additionally it would be nice to enable setting additonal aria attributes on existing components, to allow using aria-role for application parts. thx

solaris7791 avatar May 08 '19 07:05 solaris7791

This is also on my wishlist - and my plan is actually make an app-extension that will do this, potentially with some changes to the core API and core itself - but these will be forward changes for after the RC lands.

nothingismagick avatar May 08 '19 07:05 nothingismagick

@pdanpdan Is this open for community PRs? I've noticed tooltip needs role attribute and happy to do a PR for it and others I find.

MechJosh0 avatar Jul 17 '19 08:07 MechJosh0

It would be a great help for us if you could do PRs for this. Thank you.

pdanpdan avatar Jul 17 '19 09:07 pdanpdan

Ideally (or in the meantime), it would be useful to be able to set attributes directly to the native elements in a component. For instance, the q-select component does allow me to set something like aria-required="true" or role="combobox" for the autocomplete versions however the attributes get set to the parent div as well as the native element instead of just on the native input element where it belongs.

<q-select
          filled
          v-model="model"
          use-input
          hide-selected
          fill-input
          input-debounce="0"
          :options="options"
          @filter="filterFn"
          hint="Basic autocomplete"
          style="width: 250px; padding-bottom: 32px"
          aria-required="true"
          role="combobox"
        >

DOM:

<div aria-required="true" role="combobox" class="q-field__native row items-center">
<input type="search" aria-required="true" role="combobox" tabindex="0" id="qf_8fcead78-c077-923f-cb01-12db51073779" class="q-select__input q-placeholder col"></div>

mberrisford avatar Nov 04 '19 18:11 mberrisford

Link to #5266

pdanpdan avatar Nov 29 '19 07:11 pdanpdan