Skip to content

Commit f1baf01

Browse files
(DropdownButton): improve a11y
1 parent 08e3764 commit f1baf01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/DropdownButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ export const DropdownButton = (props: DropdownButtonProps) => {
199199
iconMore,
200200
}}
201201
{...rprops}
202-
aria-haspopup
202+
aria-haspopup={true}
203+
aria-expanded={opened}
203204
buttonRef={buttonRef}
204205
onClick={onTriggerClick}
205206
onKeyDown={onKeyDown}

0 commit comments

Comments
 (0)