Skip to content

[menu] Document missing data attributes - #6023

Open
lyzno1 wants to merge 5 commits into
mui:masterfrom
lyzno1:codex/menu-nested-data-attribute
Open

lyzno1 wants to merge 5 commits into
mui:masterfrom
lyzno1:codex/menu-nested-data-attribute

Conversation

@lyzno1

@lyzno1 lyzno1 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Menu renders several data attributes that are missing from their data attribute declarations and API reference.

  • Menu.Popup and Menu.Positioner: data-nested, present when the menu is a submenu.
  • Menu.CheckboxItemIndicator and Menu.RadioItemIndicator: data-highlighted.
  • Menu.RadioGroup: data-disabled, via a new MenuRadioGroupDataAttributes, exported from the menu and context-menu indexes.

Regenerated the Menu and Context Menu API docs with pnpm docs:api.

Positioner data-instant is also undocumented, but Popover, Preview Card and Tooltip share the same gap, so it will be handled in a separate PR.

@pkg-pr-new

pkg-pr-new Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

commit: 265eeea

@code-infra-dashboard

code-infra-dashboard Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+266B(+0.05%) 🔺+44B(+0.03%)

Details of bundle changes

Performance

No regressions in 36 benchmarks · ran 3m 53s · details


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

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 265eeea
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6af99dc15664d5def8543acf
😎 Deploy Preview https://deploy-preview-6023--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: menu Changes related to the menu component. label Oct 20, 2026

@aarongarciah aarongarciah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! data-nested is accurate. It's only set for submenus (Menu.SubmenuRoot / ContextMenu.SubmenuRoot), not for menus inside other popups.

Could you also document these two attributes that Menu renders but doesn't declare?

  • data-highlighted on Menu.CheckboxItemIndicator and Menu.RadioItemIndicator
  • data-disabled on Menu.RadioGroup. This needs a new MenuRadioGroupDataAttributes.ts, exported from the menu and context-menu indexes.

Then rerun pnpm docs:api.

Positioner data-instant is also undocumented, but Popover, Preview Card and Tooltip have the same gap, so can open a separate PR for that.

@lyzno1 lyzno1 changed the title [menu] Document the data-nested attribute [menu] Document missing data attributes Oct 21, 2026
@lyzno1
lyzno1 requested a review from aarongarciah November 15, 2026 12:00

This branch has not been deployed

No deployments
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants