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: check for hidden elements on aria-errormessage #3156

Merged
merged 9 commits into from
Sep 24, 2021
Merged

Conversation

Zidious
Copy link
Contributor

@Zidious Zidious commented Sep 13, 2021

Check if hidden elements are present on aria-errormessage via isVisible() and add tests.

Closes issue: #3149

@Zidious Zidious requested a review from a team as a code owner September 13, 2021 20:13
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.

I feel like adding at least one integration test here would be a good idea.

lib/checks/aria/aria-errormessage-evaluate.js Outdated Show resolved Hide resolved
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.

Very minor stuff.

test/checks/aria/errormessage.js Outdated Show resolved Hide resolved
@Zidious Zidious merged commit 95d37dd into develop Sep 24, 2021
@Zidious Zidious deleted the ariaerrormessage branch September 24, 2021 15:33
straker pushed a commit that referenced this pull request Oct 18, 2021
* add visible checks and tests

* fix typo

* enable screenreader on isVisible

* add tests

* revert playground

* add aria-hidden tests

* add test and clean up

* fix test to pass if aria-invalid is false on hidden element
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