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: Extend the implicit labelled-by relation to more parent roles #448

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

mwcampbell
Copy link
Contributor

Since we already have an implicit labelled-by relationship for buttons and links, I think it makes sense to extend it to more parent roles where it should obviously apply. I realized the need for this when I tried a Xilem example with NVDA and discovered that while Xilem assumes that the implicit relationship applies to check boxes, it actually didn't.

Copy link
Member

@DataTriny DataTriny left a comment

Choose a reason for hiding this comment

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

Makes sense. But it would be wise to unit test this method now I guess.

@mwcampbell
Copy link
Contributor Author

We already had the name_from_descendant_label test, so I extended it to test all the supported roles.

Copy link
Member

@DataTriny DataTriny left a comment

Choose a reason for hiding this comment

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

Thank you.

@DataTriny DataTriny merged commit df518c7 into main Sep 10, 2024
9 checks passed
@DataTriny DataTriny deleted the more-implicit-labelled-by-parents branch September 10, 2024 20:44
@github-actions github-actions bot mentioned this pull request Sep 10, 2024
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