-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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: Set alt attr on poster img #8043
Conversation
The There was a lot of discussion at W3C about whether the So, I think the default should be to make it a null alt, but there should be an option to change that to a description of the poster image. |
Thanks @OwenEdwards, very useful feedback. Let's keep this simple as a quick fix with the null alt and figure out how best to allow a more meaningful value to be set as a feature. |
The codecov failures are codecov hitting rate limits. codecov/feedback#126. Apparently thr "fix" to add a codecov token to gh secrets doesn't apply to prs from forks, like this. Well it runs successfully after hitting retry a few times (having to do that won't help their overall rate limiting issues) but the result is nonsense again, this PR definitely doesn't decrease coverage. |
Codecov Report
@@ Coverage Diff @@
## main #8043 +/- ##
=======================================
Coverage 81.91% 81.91%
=======================================
Files 110 110
Lines 7342 7342
Branches 1772 1772
=======================================
Hits 6014 6014
Misses 1328 1328
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
* fix: Set alt attr on poster img * use null alt instead * remove debug text
Description
As the poster now uses an img element, it should have an alt attribute.
Specific Changes proposed
Sets a null alt attribute on the poster image. This conveys to screen readers (and accessibility validators) that the image is decorative and does not need descriptive text.
To do in a future update (needs discussion)
Requirements Checklist