(frontend) use aria-haspopup menu on DropButton triggers

Replace aria-haspopup true with menu on DropButton
This commit is contained in:
Cyril
2026-03-25 10:13:44 +01:00
parent fb92a43755
commit 2b60f68570
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -13,6 +13,8 @@ and this project adheres to
### Changed
- 💄(frontend) improve comments highlights #1961
- ♿(frontend) use aria-haspopup menu on DropButton triggers
#2126
## [v4.8.3] - 2026-03-23
@@ -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);