camicroscope / caMicroscope

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

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

Closed nwanduka closed 4 months ago

nwanduka commented 5 months 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