Skip to content

Commit

Permalink
Merge pull request #716 from broskoski/image-title-attr
Browse files Browse the repository at this point in the history
@sweir27 - Add a title attribute to the artwork image tag #hold
  • Loading branch information
sweir27 authored Jan 18, 2017
2 parents aef994b + fc792e5 commit 858bf89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/artwork/components/images/query.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = """
fragment images on Artwork {
title
image_alt: to_s
image_title
images {
id
url(version: ["larger", "large"])
Expand Down
3 changes: 2 additions & 1 deletion apps/artwork/components/images/templates/image.jade
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ a.artwork-images__images__image(
class='js-artwork-images__images__image__display__img'
data-src= image.url
data-default= (i === (artwork.images.length - 1))
alt= artwork.title
alt= artwork.image_alt
title= artwork.image_title
)

0 comments on commit 858bf89

Please sign in to comment.