-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ResourceItem] - Add default accessibility label and remove a11y_shitlist #2097
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
Conversation
abfb0d4 to
669fdda
Compare
|
@amrocha with this change we can remove all the a11y_shitlist! The tests were all based on the shitlist. Any suggestion on testing the actual script or do you feel we are good without it? Codecov here is not showing anything useful that I can see. |
amrocha
left a comment
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.
I love it, thank you so much for taking this on!
|
@dleroux I think we're fine to delete the tests, the script is simple enough that I'm happy with it as is |
|
@dpersing Hey Devon check this out |
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.
Aww yes, this is a fantastic milestone for accessibility stuff!
669fdda to
5502810
Compare
5502810 to
0426bc6
Compare
WHY are these changes introduced?
Currently, when an
accessibilityLabelis not provided to the Resource List the overlaying Anchor has no content which doesn't meet our accessibility requirement"Anchor element found with a valid href attribute, but no link content has been supplied."WHAT is this pull request doing?
Provides a value but either outputting the specified
accessibilityLabelif none a is provided text that will include thenameprop, or the resourceName, whichever is provided. For exampleView details for Mae JemisonORView details for customerThis change will also allow us to remove the a11y_shitlist 🎉
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes