dequelabs / dequelabs/axe-core

False positive on Splide li's - "aria role should be appropriate for the element"

Open
#4,910 2 comments 0 reactions 0 assignees View on GitHub
best practice fix high rules
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

### Product

axe Extension

### Product Version

4.116.1

### Latest Version

- [x] I have tested the issue with the latest version of the product

### Issue Description

The Axe extension is flagging the `

  • ` in something like `
    ` with "aria role should be appropriate for the element"
    I'm seeing this issue in various sliders that use the Splide library.

    I believe that the `

  • ` should be allowed to have a tabpanel role if the parent `
      ` does not have the list role according to https://www.w3.org/TR/html-aria/#docconformance.
      Please correct me if I'm reading that wrong though.

      #### How to Reproduce
      You can reproduce the issue on most any slider using Splide with the pagination dots, such as this demo on their website
      https://splidejs.com/guides/themes/

      You can just run the extension on a page with `

      ` and the error triggers as well.

      I also did a quick recording showing the issue: https://www.loom.com/share/55b5278545424d4b86f0060ec3751c32?sid=bdccc6e6-e3fd-4749-aa25-7c89624ff092

  • Contributor guide

    Open the contributing guide

    Assessment

    This issue has not been assessed yet.

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.