dequelabs / dequelabs/axe-core

Possible incorrect results for `Values assigned to role="" are not valid ARIA roles.` ARIA check in Lighthouse audit

Open
#4,480 8 comments 0 reactions 0 assignees View on GitHub
docs
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

### Product

axe-core

### Product Version

`"^4.9.0"`

### Latest Version

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

### Issue Description

#### Expectation
Reported ARIA `role` violations should actually be violations.

#### Actual
The ARIA check seems to report failures on a valid ARIA `role`, at least according to https://dequeuniversity.com/rules/axe/4.8/aria-allowed-role.

#### How to Reproduce
```html
body.chakra-ui-light > div.chakra-portal > ul#chakra-toast-manager-top


    body.chakra-ui-light > div.chakra-portal > ul#chakra-toast-manager-top-left

      body.chakra-ui-light > div.chakra-portal > ul#chakra-toast-manager-top-right

        body.chakra-ui-light > div.chakra-portal > ul#chakra-toast-manager-bottom-left

          body.chakra-ui-light > div.chakra-portal > ul#chakra-toast-manager-bottom

            body.chakra-ui-light > div.chakra-portal > ul#chakra-toast-manager-bottom-right

              ```

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.