Deprecate ButtonGroup component #65338
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
[Type] Code Quality
Issues or PRs that relate to code quality
What problem does this address?
The component does two things:
role="group"
.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">
.The text was updated successfully, but these errors were encountered: