Skip to content

[combobox] Render groups with the rowgroup role in grid mode - #5564

Merged
atomiks merged 2 commits into
mui:masterfrom
atomiks:combobox-grid-rowgroup
Aug 25, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
atomiks:combobox-grid-rowgroup

Conversation

@atomiks

@atomiks atomiks commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #5560

When grid is enabled, Combobox.Group rendered role="group" between the role="grid" list and its role="row" elements. A grid may only own row/rowgroup elements, and rows must be owned by grid, rowgroup, or treegrid, so axe reports aria-required-children and aria-required-parent on the documented grid examples.

Changes

  • Combobox.Group renders role="rowgroup" instead of role="group" when the root has grid enabled. rowgroup supports aria-labelledby, so Combobox.GroupLabel continues to name the group. Autocomplete reuses these parts. Non-grid lists are unchanged.
  • Added a regression test for the grouped grid structure.

@atomiks atomiks added type: bug It doesn't behave as expected. accessibility a11y component: autocomplete Changes related to the autocomplete component. component: combobox Changes related to the combobox component. labels Aug 25, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@5564
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5564
    

commit: 6938556

@code-infra-dashboard

code-infra-dashboard Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+30B(+0.01%) 🔺+24B(+0.02%)

Details of bundle changes

Performance

Total duration: 1,241.90 ms +45.51 ms(+3.8%) | Renders: 76 (+0) | Paint: 2,008.09 ms +53.77 ms(+2.8%)

Test Duration Renders
Tabs mount (200 instances) 262.24 ms 🔺+48.40 ms(+22.6%) 3 (+0)
Checkbox mount (500 instances) 98.83 ms 🔺+20.81 ms(+26.7%) 1 (+0)

13 tests within noise — details

Metric alarms

Test Metric Change
Tabs mount (200 instances) bench:paint 🔺 +64.79 ms

Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 6938556
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a8d39b3844e53000873a23d
😎 Deploy Preview https://deploy-preview-5564--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks marked this pull request as ready for review August 25, 2026 06:51
@atomiks
atomiks merged commit e97ba78 into mui:master Aug 25, 2026
7 checks passed
@ciampo

ciampo commented Aug 25, 2026

Copy link
Copy Markdown

Thanks for the quick turnaround!

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

Labels

accessibility a11y component: autocomplete Changes related to the autocomplete component. component: combobox Changes related to the combobox component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[autocomplete][combobox] Grid groups render invalid ARIA ownership

2 participants