Product Ideas Portal

aria-selected rule ignores role

We have a violation being flagged that is referencing the HTML element instead of the role that's been added to the HTML element, when really the violation should be referencing the role.

The violation is "The aria-selected attribute is not allowed on this " This is flagged for five or six different type elements: headings, divs, p-tag, and span. In almost all cases the element has a role=button (some have role="region").

Though "button" is also a disallowed element, it might make more sense that the rule references the assigned role instead of the underlying HTML element (i.e. have these violations say: "The aria-selected attribute is not allowed on elements with role=button")

  • laura fathauer
  • May 27 2020
  • Planned
  • Attach files
  • Admin
    Zahra Safavian commented
    4 Aug, 2020 11:09pm

    I have planned this for an upcoming sprint. Ticket ID: ENG-965