️(frontend) use aria-haspopup menu on DropButton triggers

Replace aria-haspopup true with menu on DropButton
This commit is contained in:
Cyril
2026-03-27 11:24:32 +01:00
parent 210c8b5660
commit 7f9869f547
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -6,6 +6,10 @@ and this project adheres to
## [Unreleased]
### Changed
- ♿(frontend) use aria-haspopup menu on DropButton triggers #2126
## [v4.8.4] - 2026-03-25
### Added
@@ -93,7 +93,7 @@ export const DropButton = ({
onOpenChangeHandler(true);
}}
aria-label={label}
aria-haspopup="true"
aria-haspopup="menu"
aria-expanded={isLocalOpen}
data-testid={testId}
$css={css`
@@ -94,7 +94,7 @@ describe('<DropdownMenu />', () => {
);
const trigger = screen.getByRole('button', { name: 'Select language' });
expect(trigger).toHaveAttribute('aria-haspopup', 'true');
expect(trigger).toHaveAttribute('aria-haspopup', 'menu');
expect(trigger).toHaveAttribute('aria-expanded', 'false');
await userEvent.click(trigger);