Skip to content

Commit

Permalink
add modal label for cookie-consent
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Mar 22, 2024
1 parent bb232ef commit ff5c5b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ contact:
whatsapp: WhatsApp
cookie_banner:
accept: Accept
label: Cookie notice
refuse: Refuse
text: 'By continuing to browse this site, you accept the use of Cookies to offer you personalized features and to carry out audience measurements. To find out more and configure these cookies:'
title: Cookie banner
Expand Down
1 change: 1 addition & 0 deletions i18n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ contact:
whatsapp: WhatsApp
cookie_banner:
accept: Accepter
label: Avis sur les cookies
refuse: Refuser
text: 'En poursuivant votre navigation sur ce site, vous acceptez l’utilisation de Cookies pour vous proposer notamment des fonctionnalités personnalisées et pour réaliser des mesures d’audience. Pour en savoir plus et paramétrer ces cookies :'
title: Bandeau cookie
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/footer/cookie-banner/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{{- $cookie_text := partial "func/PrepareHTML" (i18n "cookie_banner.text") -}}
{{- $cookie_refuse := partial "func/PrepareHTML" (i18n "cookie_banner.refuse") -}}
{{- $cookie_accept := partial "func/PrepareHTML" (i18n "cookie_banner.accept") -}}
<div class="cookie-consent js-cookie-consent show" tabindex="-1" role="dialog" aria-label="{{ $cookie_label }}">
<div class="cookie-consent js-cookie-consent show" tabindex="-1" role="dialog" aria-label="{{ $cookie_label }}" describedby="cookie-consent-description">
<div>
<p>
<p id="cookie-consent-description">
{{- $cookie_text }}
<a href="{{ $cookie_page | safeURL }}" {{- if eq $cookie_page $cookie_page_default }} target="_blank" ref="noopener"{{ end }}>{{ i18n "more" }}</a>
</p>
Expand Down

0 comments on commit ff5c5b6

Please sign in to comment.