Skip to content

Add alt attribute logic to PostImageTagHelper for WCAG - #820

Merged
poppastring merged 1 commit into
mainfrom
post-image-helper
May 6, 2026
Merged

poppastring merged 1 commit into
mainfrom
post-image-helper

Conversation

@poppastring

Copy link
Copy Markdown
Owner

Add alt attribute logic to PostImageTagHelper for WCAG

Always emit an alt attribute for images in PostImageTagHelper to ensure valid HTML and accessibility. Alt text is resolved in order: explicit Alt property, Post.ImageAlt, Post.Title, or empty string for decorative images.

Always emit an alt attribute for images in PostImageTagHelper to ensure valid HTML and accessibility. Alt text is resolved in order: explicit Alt property, Post.ImageAlt, Post.Title, or empty string for decorative images.
@poppastring
poppastring merged commit 6f3c786 into main May 6, 2026
3 checks passed
@poppastring
poppastring deleted the post-image-helper branch May 6, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant