Skip to content

Add alt text to Elephants images #1292

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

Merged
merged 2 commits into from
Jul 11, 2025
Merged

Add alt text to Elephants images #1292

merged 2 commits into from
Jul 11, 2025

Conversation

adamcable
Copy link
Contributor

Fixing elements which do not have alt attributes

Fixing elements which do not have alt attributes
Copy link
Contributor

🚀 Regression report for commit 522c73a is at https://web-php-regression-report-pr-1292.preview.thephp.foundation

Copy link
Contributor

🚀 Preview for commit 522c73a can be found at https://web-php-pr-1292.preview.thephp.foundation

@cmb69
Copy link
Member

cmb69 commented Jul 10, 2025

I'm not sure that just reusing the titles (which are apparently the file names) as alt text makes sense; that might actually be worse than having no alt texts at all. As is, a screen reader likely ignores the images, but now it may read: "DSC_0031" …

@adamcable
Copy link
Contributor Author

Yes - setting alt text to empty sounds better. And just makes sure it keeps to image alt text best practices

@sy-records
Copy link
Member

@cmb69 Hi, This doesn't seem to be a file name?

image

@adamcable
Copy link
Contributor Author

On live some are...

image

Copy link
Member

@saundefined saundefined left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@sy-records sy-records merged commit bb65d6c into php:master Jul 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants