Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listbox: How to make a collapsible listbox required? #657

Closed
jnurthen opened this issue Apr 23, 2018 · 6 comments · Fixed by #1852
Closed

Listbox: How to make a collapsible listbox required? #657

jnurthen opened this issue Apr 23, 2018 · 6 comments · Fixed by #1852
Assignees
Labels
Pattern Page Related to a page documenting a Pattern
Milestone

Comments

@jnurthen
Copy link
Member

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.

@mcking65 mcking65 self-assigned this Jul 20, 2018
@mcking65 mcking65 added documentation Pattern Page Related to a page documenting a Pattern labels Jul 20, 2018
@mcking65 mcking65 added this to the 1.1 APG Release 3 milestone Jul 20, 2018
@zelliott
Copy link

zelliott commented Jul 9, 2019

Wondering if there has been any update on this front?

@zelliott
Copy link

Bump on this again. Wondering what the guidance is on using aria-required with a popup listbox?

@ZoeBijl
Copy link
Contributor

ZoeBijl commented Oct 23, 2019

@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?

@mcking65
Copy link
Contributor

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
Copy link
Member

since the new combobox pattern has been published, should this pattern be removed per @mcking65's comment above?

@smhigley
Copy link
Contributor

I volunteer as tribute to make a PR to remove it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pattern Page Related to a page documenting a Pattern
Development

Successfully merging a pull request may close this issue.

6 participants