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
Allow title
attribute or aria-label
attribute instead of accessible child in the "anchor-has-content" rule
#727
Allow title
attribute or aria-label
attribute instead of accessible child in the "anchor-has-content" rule
#727
Conversation
@gorohash are you thinking that using both |
@jessebeach |
@gorohash Requiring both |
@backwardok I agree with you. A tooltip shown by |
Hi @gorohash ! I may have been confusing with my language. I meant I recommend that it be updated to be an OR instead of an AND 🙂 Would you want to make that update to your own code? |
d423ff5
to
ff93739
Compare
title
and aria-label
attributes in the "anchor-has-content" ruletitle
attribute or aria-label
attribute instead of accessible child in the "anchor-has-content" rule
@backwardok Thanks for your advice! I updated my code |
5177497
to
2a36fa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding in this support!
2a36fa5
to
1abfa34
Compare
Codecov Report
@@ Coverage Diff @@
## main #727 +/- ##
=======================================
Coverage 99.29% 99.29%
=======================================
Files 104 104
Lines 1555 1557 +2
Branches 523 524 +1
=======================================
+ Hits 1544 1546 +2
Misses 11 11
|
Hey @jessebeach ! Was wondering if you could review this PR? Thanks! 😄 |
1abfa34
to
e6bfd5c
Compare
@jessebeach this is freshly rebased; mind giving it a review? |
I'll have a look tonight after the kiddo goes to sleep. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good improvement.
In the future, we will want to incorporate the mayHaveAccessibleLabel
utility and somehow port a consideration for title
back into that utility, so that we don't have so much logic directly in a rule, where it might diverge from other similar rules.
But for now, this is an improvement to this rule.
Thank you @backwardok !! |
ack, apologies @ljharb! I hit the Merge button on this one. I know you like to merge the commits in a different way. |
No worries, it’s fine :-) thanks for reviewing! |
Fixes #423
Allowed
title
andaria-label
attributes instead of text content in the "anchor-has-content" rule.