mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-09 19:27:55 +02:00
♿️(frontend) use aria-haspopup menu on DropButton triggers
Replace aria-haspopup true with menu on DropButton
This commit is contained in:
@@ -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`
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user