Accessibility: MenuButton must have an accessible name via aria-label, text content, aria-labelledby, etc (@microsoft/fluentui-jsx-a11y/menu-button-needs-labelling)
💼 This rule is enabled in the ✅ recommended config.
MenuButton components must have accessible labelling for screen readers.
This rule enforces that MenuButton components have proper accessible names through aria-label, aria-labelledby, or text content.
<MenuButton /><MenuButton aria-label="Menu options" />
<MenuButton aria-labelledby="menu-label">
<span id="menu-label">Options</span>
</MenuButton>
<MenuButton>Options</MenuButton>This rule should always be used for MenuButton components as they are interactive elements.