Compare commits

...

1 Commits

Author SHA1 Message Date
Cyril 2b60f68570 (frontend) use aria-haspopup menu on DropButton triggers
Replace aria-haspopup true with menu on DropButton
2026-03-25 10:15:22 +01:00
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);