Skip to content

[menu] trigger inside popovers have role="menuitem" #2039

@OliverJAsh

Description

@OliverJAsh

Bug report

Current behavior

Menu trigger inside popovers have role="menuitem". This appears to be new behaviour after upgrading from the alpha to the beta.

Expected behavior

Menu trigger inside popovers do not have role="menuitem" because the trigger is not a menu item.

(I could be totally wrong!)

Reproducible example

https://codesandbox.io/p/devbox/exciting-voice-l9nz94?file=%2Fsrc%2FApp.tsx%3A10%2C22&workspaceId=ws_4qKVDKGuRrrvd8oLfoRWSz

Base UI version

1.0.0-beta.0

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

Which assistive tech are you using (if applicable)?

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: menuChanges related to the menu component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.type: regressionA bug, but worse, it used to behave as expected.

    Projects

    Status

    Recently completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions