Skip to content

[test] Test menu trigger aria-expanded - #4957

Merged
mj12albert merged 2 commits into
mui:masterfrom
mj12albert:fix-menu-trigger-aria-expanded
Jun 2, 2026
Merged

mj12albert merged 2 commits into
mui:masterfrom
mj12albert:fix-menu-trigger-aria-expanded

Conversation

@mj12albert

@mj12albert mj12albert commented Jun 1, 2026 •

Copy link
Copy Markdown
Member

#4956

@mj12albert mj12albert added component: menu Changes related to the menu component. type: regression A bug, but worse, it used to behave as expected. labels Jun 1, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

commit: 32ceb77

@code-infra-dashboard

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

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,096.78 ms -197.10 ms(-15.2%) | Renders: 50 (+0) | Paint: 1,667.38 ms -277.22 ms(-14.3%)

Test Duration Renders
Menu mount (300 instances) 115.85 ms ▼-39.36 ms(-25.4%) 2 (+0)
Mixed surface mount (app-like density) 70.42 ms ▼-26.92 ms(-27.7%) 5 (+0)
Menu open (500 items) 62.05 ms ▼-20.59 ms(-24.9%) 12 (+0)
Popover mount (300 instances) 61.45 ms ▼-16.58 ms(-21.3%) 1 (+0)

8 tests within noise — details


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

@netlify

netlify Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 32ceb77
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a1e0c15b53e840008d960b9
😎 Deploy Preview https://deploy-preview-4957--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 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

I think it was caused by adding fastComponentRef, at least based on the issue description (and on master deploy, aria-expanded is visible): #4866

@atomiks

atomiks commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

I think the runtime change is redundant after #4866. triggerProps already carries aria-expanded; the issue was that useStoreFast returned stale triggerProps when the selector arg changed in MenuTrigger. That’s fixed on master.

The updated test is still valuable though, since the previous controlled open test didn’t exercise the transition that regressed in 1.5.0.

@mj12albert mj12albert changed the title [menu] Fix trigger aria-expanded value [test] Fix menu trigger aria-expanded value Jun 1, 2026
@mj12albert mj12albert added test and removed type: regression A bug, but worse, it used to behave as expected. labels Jun 1, 2026
@mj12albert mj12albert changed the title [test] Fix menu trigger aria-expanded value [test] Test menu trigger aria-expanded Jun 1, 2026
@mj12albert
mj12albert marked this pull request as ready for review June 1, 2026 22:48
@mj12albert
mj12albert merged commit 82ea03e into mui:master Jun 2, 2026
6 checks passed
@mj12albert
mj12albert deleted the fix-menu-trigger-aria-expanded branch June 2, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: menu Changes related to the menu component. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants