Add option to aria.getRole to ignore presentation and none roles #1792
Labels
core
Issues in the core code (lib/core)
feat
New feature or enhancement
good first issue
For first-time contributors
hacktoberfest
Help contribute during the month of October to participate https://hacktoberfest.digitalocean.com/
We do a lot of
!['presentation', 'none'].includes(role)
in the code. It would be nice to add an option to aria.getRole to ignore these roles. An option namednoPresentational
should suffice. If the option is set, the function should returnnull
if the role is eitherpresentation
ornone
.Please also create a test to show that the new option works.
The text was updated successfully, but these errors were encountered: