Skip to content

Add alt text to Elephants images#1292

Merged
sy-records merged 2 commits into
php:masterfrom
adamcable:master
Jul 11, 2025
Merged

Add alt text to Elephants images#1292
sy-records merged 2 commits into
php:masterfrom
adamcable:master

Conversation

@adamcable

Copy link
Copy Markdown
Contributor

Fixing elements which do not have alt attributes

Fixing elements which do not have alt attributes
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

@cmb69

cmb69 commented Jul 10, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Member

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

image

@adamcable

Copy link
Copy Markdown
Contributor Author

On live some are...

image

@saundefined saundefined left a comment

Copy link
Copy Markdown
Member

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