Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(html-elms): update role allowances for nav element #3402

Merged
merged 4 commits into from
Mar 7, 2022

Conversation

scottaohara
Copy link
Contributor

closes #3401

allows none and presentation role on <nav> element.

closes dequelabs#3401

allows `none` and `presentation` role on `<nav>` element.
@scottaohara scottaohara requested a review from a team as a code owner March 4, 2022 00:08
@WilcoFiers WilcoFiers self-assigned this Mar 4, 2022
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing thing, and then would you mind adding a test case to test/integration/rules/aria-allowed-role/aria-allowed-role.html, so that we can prevent regression.

Also, as a question, how come <main> isn't allowed role=none, but footer, header, aside and now nav are?

@scottaohara
Copy link
Contributor Author

@WilcoFiers added the tests (and also added the tests to my other PR. somehow missed your ask on that).

re: main, yes. we've been talking about that as well. likely another update in the not too distant future.

@WilcoFiers
Copy link
Contributor

Reviewed for security. I'm going to merge this despite the failing tests. Those are unrelated to this PR. A fix for that is merging into develop today too.

@WilcoFiers WilcoFiers changed the title update role allowances for nav element fix(html-elms): update role allowances for nav element Mar 7, 2022
@WilcoFiers WilcoFiers merged commit 2ab63e0 into dequelabs:develop Mar 7, 2022
@scottaohara scottaohara deleted the patch-3 branch March 7, 2022 15:54
straker pushed a commit that referenced this pull request May 12, 2022
* update role allowances for nav element

closes #3401

allows `none` and `presentation` role on `<nav>` element.

* tests for nav role allowance update

* add entries for nav role allowance updates

* Update lib/standards/html-elms.js

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow role=none|presentation on nav element
2 participants