Skip to content

ToggleGroup - update examples to toggle options #12234

@thatblindgeye

Description

@thatblindgeye

Describe the enhancement or change
By nature the ToggleGroup (which uses aria-pressed on its children) should contain options that are toggleable - clicking once "selects"/toggles it on, and another click "unselects"/toggles it off. Most examples do this, but there are some instances where clicking a selected option doesn't unselect it:

  • ToggleGroup > "Single select toggle group" example
  • Table > "Basic" example
  • Table > "Actions" example
  • Alert > "Asynchronous live region alerts" example

The work that will need to be done includes:

  • Updating example logic so clicking an option truly toggles its selection
  • For the Table examples, removing the "default" options so that having no options selected results in the default appearance
  • For the Alert example, removing the "async alerts off" option so that you only toggle the "Async alerts on" option on or off

Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?

Any other information?

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions