You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Listbox: How to make a collapsible listbox required? #657
The collapsible listbox https://www.w3.org/TR/wai-aria-practices-1.1/examples/listbox/listbox-collapsible.html is based on button. How can this be set to be required as button does not support aria-required.
The best I can think of is to set the child listbox to required but this doesn't really satisfy the desire to mark the button itself as required.
Reacted by Joseph McLarty, JAWS-test, Michael Jordan and Ihor Sviziev
@mcking65 any updates on this? Currently aria-required isn’t allowed on the button element (or the button role for that matter).
Should ARIA add something like a select role that encompasses this entire widget? It does seem odd that doesn’t exist. But we have something similar with the tabs design pattern. But I digress. @jnurthen any thoughts?
Now that we have rewritten combobox for ARIA 1.2, the new combobox pattern can be used instead of a collapsable listbox. In fact, you could use almost the same code as the collapsable listbox except that the element that is the button would become the combobox element. There would be a few other changes too, but most of the mechanics would be the same.
If the 1.2 draft of combobox ends up in the final spec, then we would be able to remove the collapsable listbox example and replace it with a select-only combobox example, which would resolve this issue.
Reacted by Zack Elliott, JAWS-test, Carolyn MacLeod, Scott O'Hara and Sarah Higley
Activity
zelliott commentedon Jul 9, 2019
Wondering if there has been any update on this front?
zelliott commentedon Oct 17, 2019
Bump on this again. Wondering what the guidance is on using aria-required with a popup listbox?
ZoeBijl commentedon Oct 23, 2019
@mcking65 any updates on this? Currently
aria-requiredisn’t allowed on thebuttonelement (or thebuttonrole for that matter).Should ARIA add something like a
selectrole that encompasses this entire widget? It does seem odd that doesn’t exist. But we have something similar with the tabs design pattern. But I digress. @jnurthen any thoughts?mcking65 commentedon Dec 12, 2019
Now that we have rewritten combobox for ARIA 1.2, the new combobox pattern can be used instead of a collapsable listbox. In fact, you could use almost the same code as the collapsable listbox except that the element that is the button would become the combobox element. There would be a few other changes too, but most of the mechanics would be the same.
If the 1.2 draft of combobox ends up in the final spec, then we would be able to remove the collapsable listbox example and replace it with a select-only combobox example, which would resolve this issue.
scottaohara commentedon Mar 12, 2021
since the new combobox pattern has been published, should this pattern be removed per @mcking65's comment above?
smhigley commentedon Mar 22, 2021
I volunteer as tribute to make a PR to remove it 😄