Skip to content

Correct aria-expanded usage for related issues

Chad Lavimoniere requested to merge 20231205-ariaexpanded-related-issues into master

What does this MR do and why?

aria-expanded attribute should be applied to the button that controls a toggled disclosure, not the disclosure itself.

cf. https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-faq/

How to set up and validate locally

  1. Check out this branch locally
  2. visit an Epic page
  3. Open dev tools and inspect the button that toggles the expanded/collapsed state for the "Child issues and epics" widget
  4. You should see that it has the aria-expanded attribute, and that the attribute reflects the current expanded/collapsed state of the widget
  5. Click the button and you should see that the button's aria-expanded attribute changes to reflect the new state of the widget

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports