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.
Wondering if there has been any update on this front?
Bump on this again. Wondering what the guidance is on using aria-required with a popup listbox?
@mcking65 any updates on this? Currently aria-required isn鈥檛 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鈥檛 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.
Most helpful comment
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.