camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
231 stars 286 forks source link

[Accessibility] Workbench: Aria attributes do not match their roles #983

Open nwanduka opened 2 weeks ago

nwanduka commented 2 weeks ago

Describe the bug

  1. 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.

  2. 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