From 753b5d61e426a9c7c2a5301c0fe50878ffc67519 Mon Sep 17 00:00:00 2001 From: Dawn Budge Date: Mon, 26 Mar 2018 14:30:39 +0100 Subject: [PATCH] =?UTF-8?q?Add=20alt=20text=20for=20low-vision=20users=20?= =?UTF-8?q?=20=F0=9F=90=BF=20v2.8.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/main-image.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partials/main-image.html b/templates/partials/main-image.html index c122ddc..324d00d 100644 --- a/templates/partials/main-image.html +++ b/templates/partials/main-image.html @@ -8,11 +8,11 @@ tabindex="-1" > {{#ifEquals lazyLoad false}} - {{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio colspan=colspan position=position widths=widths lazyLoad=false wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}} + {{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio alt=@nTeaserPresenter.data.title colspan=colspan position=position widths=widths lazyLoad=false wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}} {{> n-image/templates/image}} {{/nImagePresenter}} {{else}} - {{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio colspan=colspan position=position widths=widths lazyLoad=true wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}} + {{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio alt=@nTeaserPresenter.data.title colspan=colspan position=position widths=widths lazyLoad=true wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}} {{> n-image/templates/image}} {{/nImagePresenter}} {{/ifEquals}}