Skip to content
Snippets Groups Projects
Unverified Commit a514ca70 authored by claraRigo's avatar claraRigo Committed by GitHub
Browse files

Ajout d'élements textes SR dans les déclencheurs de lightbox (#580)

parent a9fd1818
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}"
>
<span class="sr-only">{{- i18n "commons.lightbox.link.title" -}}</span>
{{ end }}
{{ partial "commons/image.html"
(dict
......
......@@ -25,6 +25,7 @@
href="{{ partial "GetLightboxUrl" (dict "id" .id) }}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
<span class="sr-only">{{- i18n "commons.lightbox.link.title" -}}</span>
</a>
{{ end }}
{{ if or .text .credit }}
......
......@@ -29,6 +29,7 @@
href="{{ partial "GetLightboxUrl" (dict "id" .id) }}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
<span class="sr-only">{{- i18n "commons.lightbox.link.title" -}}</span>
</a>
{{ end }}
{{ with .text }}
......
......@@ -25,6 +25,7 @@
href="{{ partial "GetLightboxUrl" (dict "id" .id) }}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
<span class="sr-only">{{- i18n "commons.lightbox.link.title" -}}</span>
</a>
{{ end }}
{{ if or .text .credit }}
......
......@@ -25,6 +25,7 @@
href="{{- partial "GetLightboxUrl" . -}}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
<span class="sr-only">{{- i18n "commons.lightbox.link.title" -}}</span>
{{ end }}
{{ partial "commons/image.html"
(dict
......
......@@ -72,6 +72,7 @@
href="{{ partial "GetLightboxUrl" .image }}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
<span class="sr-only">{{- i18n "commons.lightbox.link.title" -}}</span>
</a>
{{ end }}
{{ with .image.credit }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment