Metadecidim
Sign in

Process

Co-creating the roadmap 2025–2027

not yet on protocol

Change attachment photo image alt texts to the title

Currently the alt texts for the attachment photos are defined by the photo's description as defined by:
https://github.com/decidim/decidim/blob/372d1114e364ac1a0553fcf758514487b49cb2d7/decidim-core/app/views/decidim/application/_photos.html.erb#L9

I suggest changing this to the photo titles instead because for example the proposal attachments do not have the alt texts defined currently because they don't have any description.

This would improve:
- The meta information of the images for them to be better discoverable by search engines
- Usability for blind users

1 comment

  1. In favour

    I agree, at least the title should be used as an alt-text when description is not available (as is the case with all images attached to the proposals, for example). I guess this is required also to be compatible with the EU accessibility directive.

    0 votes up 0 votes down

Sign in with your Atmosphere account to comment.