Skip to content

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

Merged
WilcoFiers merged 4 commits intodequelabs:developfrom
scottaohara:patch-3
Mar 7, 2022
Merged

fix(html-elms): update role allowances for nav element#3402
WilcoFiers merged 4 commits intodequelabs:developfrom
scottaohara:patch-3

Conversation

@scottaohara
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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