Skip to content

cards: improve a11y alt text in generated img tag #1203

@jcharousset

Description

@jcharousset

Hello,

Thank you for all the work you’ve put into this project — it’s impressive and very helpful.

The new "cards" shortcode is nice, and the "children" shortcode with "type=cards" even more. However the generated tag doesn't have an alt text, which is flagged as an error by many HTML proofers.

A quick & easy solution could be to always add an empty alt text in the generated tag. This sort of makes senses to me, as images in cards are frequently associated with a title and/or description, so they could be considered decorative. Maybe in the future this could be extended with a mechanism allowing to specify an alt text.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions