Skip to content

Commit

Permalink
Merge pull request #53 from lemoswilson/add-null-alt-text-option
Browse files Browse the repository at this point in the history
Add null alt text capabilities to contentful-visual component even if the asset has a title.
  • Loading branch information
weotch authored Apr 13, 2022
2 parents 065fe17 + 5916762 commit 88bba82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/contentful-visual.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default
maxWidth

# Accessibility
alt: image?.description ||
alt: props.alt ? image?.description ||
image?.title ||
video?.description ||
video?.title
Expand Down

0 comments on commit 88bba82

Please sign in to comment.