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(prohibited-attr): always report incomplete if there is text in the subtree #3347

Merged
merged 3 commits into from
Jan 14, 2022

Conversation

WilcoFiers
Copy link
Contributor

Subtree text wasn't computed for elements that are not named from content. To force this, subtreeDescendant: true had to be passed.

This PR also significantly improves the messages of the prohibited-attr check, which was the cause of some confusion.

Closes issue: #3346

@WilcoFiers WilcoFiers requested a review from a team as a code owner January 12, 2022 12:37
…e subtree

Subtree text wasn't computed for elements that are not named from content. To force this, subtreeDescendant: true had to be passed.

This PR also significantly improves the messages of the prohibited-attr check, which was the cause of some confusion.
@@ -9,39 +9,79 @@ describe('aria-prohibited-attr', function() {
checkContext.reset();
Copy link
Contributor

Choose a reason for hiding this comment

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

Need tests for checking when the messageKey is set to noRoleSingular when returned as false and undefined

straker
straker previously approved these changes Jan 13, 2022
@WilcoFiers WilcoFiers merged commit 2e27dca into develop Jan 14, 2022
@WilcoFiers WilcoFiers deleted the aria-prohibited-fix branch January 14, 2022 09:35
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.

2 participants