accessibility: make dropdowns accessible (#9475)
#### Motivation Improve accessibility of dropdowns. #### Before Dropdowns are not accessible. <img width="1219" alt="Screenshot 2025-01-09 at 10 00 36" src="https://github.com/user-attachments/assets/060198f8-a42f-408c-a39a-b83da55e23c4" /> #### Ater Dropdowns are accessible 
This commit is contained in:
@ -136,6 +136,10 @@ export const Dropdown = ({
|
||||
<div
|
||||
ref={refs.setReference}
|
||||
onClick={handleClickableComponentClick}
|
||||
aria-controls={`${dropdownId}-options`}
|
||||
aria-expanded={isDropdownOpen}
|
||||
aria-haspopup={true}
|
||||
role="button"
|
||||
>
|
||||
{clickableComponent}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user