♿(frontend) use aria-haspopup menu on DropButton triggers
Replace aria-haspopup true with menu on DropButton
This commit is contained in:
@@ -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`
|
||||
|
||||
+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