I also observed that it's not keyboard accessible. I suspect this role-attribute mismatch could be the reason for this behavior.
Expected behavior
To fix this issue, ensure that the ARIA attributes are correctly used with appropriate roles and elements. For a dropdown menu, it is often better to use a
Describe the bug
The aria-expanded attribute does not match the expected role or is not correctly implemented for the anchor element. The anchor () tag is not inherently a button or menu role, which is typically expected to control the aria-expanded state.
I also observed that it's not keyboard accessible. I suspect this role-attribute mismatch could be the reason for this behavior.
Expected behavior To fix this issue, ensure that the ARIA attributes are correctly used with appropriate roles and elements. For a dropdown menu, it is often better to use a
Screenshots