-
Sonar Systems adminLikes 0Problem Description
What is the purpose of aria properties?
Solution DescriptionAdd aria-haspopup=”true” to .dropdown-toggle
This lets screen readers know the button will open a menu.
Add aria-expanded=”false” to .dropdown-menu
This sets the initial state of the dropdown. You need to use JavaScript to toggle it depending on the expanded state.
Login to reply