Skip to content

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

Closed

Description

@jnurthen

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.

Activity

  1. self-assigned this
    on Jul 20, 2018
  2. added this to the 1.1 APG Release 3 milestone on Jul 20, 2018
  3. zelliott commented on Jul 9, 2019

    @zelliott

    Wondering if there has been any update on this front?

  4. zelliott commented on Oct 17, 2019

    @zelliott

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

  5. ZoeBijl commented on Oct 23, 2019

    @ZoeBijl
    Contributor

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

  6. mcking65 commented on Dec 12, 2019

    @mcking65
    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.

  7. scottaohara commented on Mar 12, 2021

    @scottaohara
    Member

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

  8. smhigley commented on Mar 22, 2021

    @smhigley
    Contributor

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

  9. self-assigned this
    on Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Pattern PageRelated to a page documenting a Pattern

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions