Skip to content

[accordion] Remove region role from Accordion.Root - #4961

Merged
atomiks merged 2 commits into
mui:masterfrom
chuganzy:accordion-root-role
Jun 8, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
chuganzy:accordion-root-role

Conversation

@chuganzy

@chuganzy chuganzy commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes role="region" from Accordion.Root.

Based on the WAI-ARIA accordion pattern, region is typically applied to accordion panels rather than the root container. Since Accordion.Root serves as a structural wrapper and does not have an accessible label of its own, removing the region role seems more aligned with the APG guidance.

References:


Aside from that, APG recently removed the optional arrow key navigation for accordions (FYI):
w3c/aria-practices#3434

Opened a PR for it separately #4965

@pkg-pr-new

pkg-pr-new Bot commented Jun 2, 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@4961
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@4961
    

commit: 8e9345e

@code-infra-dashboard

code-infra-dashboard Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react ▼-14B(0.00%) ▼-3B(0.00%)

Details of bundle changes

Performance

Total duration: 1,184.26 ms -204.89 ms(-14.7%) | Renders: 50 (+0) | Paint: 1,791.60 ms -301.40 ms(-14.4%)

Test Duration Renders
Menu mount (300 instances) 121.83 ms ▼-31.11 ms(-20.3%) 2 (+0)
Mixed surface mount (app-like density) 68.38 ms ▼-29.54 ms(-30.2%) 5 (+0)

10 tests within noise — details


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

@netlify

netlify Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 8e9345e
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a2647efd58abe0008e784bc
😎 Deploy Preview https://deploy-preview-4961--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.

@zannager zannager added the component: accordion Changes related to the accordion component. label Jun 3, 2026
@atomiks
atomiks merged commit a3cfc4f into mui:master Jun 8, 2026
6 checks passed
@chuganzy
chuganzy deleted the accordion-root-role branch June 8, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: accordion Changes related to the accordion component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants