Combobox, Select, SelectControl: Add Group and GroupLabel - #80574
Conversation
|
Size Change: +594 B (+0.01%) Total Size: 7.75 MB 📦 View Changed
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in 6ec5cb7. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/29930298706
|
What?
Adds
GroupandGroupLabelsubcomponents to the Combobox and Select item-popup primitive families, and re-exports them fromSelectControl.Why?
Autocompletealready supports labeled item groups. Combobox and Select share the same item-popup styling but were missing equivalent subcomponents, so grouped options could not be composed consistently across these families.How?
group.tsxandgroup-label.tsxwrappers for Combobox and Select, following the existing Autocomplete implementation.SelectControl.GroupandSelectControl.GroupLabel.Testing Instructions
Screenshots or screencast