-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[RFC] Add alt texts to images #16895
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
cc @symfony/diversity-champions and @symfony/team-symfony-docs I guess both of these teams have very relevant insights and knowledge about this :) |
good catch! it might actually make sense to run some automated a11y tools on regular intervals over the docs to catch stuff like this. AFAIK “screenshot” is so generic that it can left off. if its a specific type of chart it makes sense to include it. |
Agree with the automated a11y tools, but the alt text you’ve provided is good: detailed and succinct. |
Good idea with adding some automated testing here. We already use GitHub Actions to render the rst source to a complete HTML project, so I guess it shouldn't be too hard to find a tool that is able to lint the generated HTML? |
2843c6d
to
2ea906a
Compare
This PR is now fully revisited and complete:
|
2ea906a
to
d3ba83b
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.
Some of the SVG's look like they have white backgrounds instead of transparent - is that correct?
Yes, all of them should have white backgrounds. I'm not a dark theme user myself, but it seems like we do not automatically invert diagram colors when switching to the dark theme. This means that without the white background, diagrams will be unreadable because it's black on black. |
d3ba83b
to
43e6864
Compare
Unfortunately, multi line options aren't supported by the Doctrine rst-parser 0.5. I've contributed this to 0.6, but given it includes a BC break I don't think we can backport the fix to 0.5. TL;DR: all alt text must be on a single line, bypassing our soft 72 character limit. I guess this will help us push towards concise descriptions 😉 |
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.
What a colossal contribution 😱 Wouter, you are amazing 🙇🙇🙇
I haven't found any typo or issue in the proposed changes, so I'd say this can be merged.
Wouter, would you be able to merge this yourself? If you can't, please tell me and I'll try to do it myself. Thanks!
I don't know what a .dia file is, but it seems there are some |
43e6864
to
f2fa13c
Compare
f2fa13c
to
673cd60
Compare
Thanks for the reviews! Those autosave files were definitely not intended, I've removed them. Merge up was without a conflict (surprisingly) 😃 |
* 5.4: [#16895] Remove last center align
* 6.3: Remove 5.x versionadded directives [#16895] Remove last center align
Thank you 🙏 |
I suddenly realized we didn't offer any alt texts for any of our images/diagrams. This PR adds 2 alt texts, to gather feedback on both if we want this and how we are going to provide alt texts for our diagrams (which can be quite complex to explain in words).
I used https://medium.com/nightingale/writing-alt-text-for-data-visualization-2a218ef43f81 and https://sc.edu/about/offices_and_divisions/digital-accessibility/guides_tutorials/alternative_text/charts-diagrams/index.php as two examples to help me write this text (this is my first time properly thinking about alt texts).