-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Labels
Description
Description
I noticed that when you use ActionMenu.Anchor
for an ActionMenu, there is no way to specify an Id for the button because it checks the anchor/button itself (not the children) for an id but the Anchor type doesn't include an id, unlike the Button type
Steps to reproduce
<ActionMenu.Anchor>
<IconButtonWithTooltip
id="ICON_ID"
icon={TriangleDownIcon}
label="Copilot menu"
hideTooltip={open}
onSelect={() => setOpen(true)}
size="small"
sx={{...squareHeightSx, '>span': {mb: 0}, color: 'fg.muted'}}
tooltipDirection="sw"
data-testid="more-copilot-button"
/>
</ActionMenu.Anchor>
The button will have a random ID assigned and the Anchor will not accept an ID itself.
Version
current
Browser
Chrome, Safari, Firefox, Edge, iOS Safari