Skip to content

Deprecate ButtonGroup component #65338

Closed
Closed

Description

@mirka

What problem does this address?

The component does two things:

As we can see from the usages in the Gutenberg app, role="group" is not semantically sufficient to make these buttons behave like a segmented control, and most consumers will not realize this. As such, most of our in-repo usages are inaccessible.

The outdated segmented control style is similar to the already deprecated RadioGroup, and is succeeded by the ToggleGroupControl style.

What is your proposed solution?

Consumers who want to wrap their buttons in a group can do that with a plain <div role="group">.

Activity

  1. added
    [Focus] Accessibility (a11y)
    [Type] Code Quality
    [Package] Components
    on Sep 13, 2024
  2. hbhalodia commented on Sep 18, 2024

    @hbhalodia
    Contributor

    Hi @mirka, I have raised the PR by adding the soft deprecation as expected on the issue. Let me know if we need to update anything else in the PR - #65429

    Thank You,

  3. mirka commented on Dec 20, 2024

    @mirka
    MemberAuthor

    Closed by #65429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Focus] Accessibility (a11y)[Package] Components[Type] Code Quality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions