From 86c1466700e4beeb3e84946fa56e95fb1bfc127b Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Tue, 13 Dec 2022 18:27:43 +0100
Subject: [PATCH] timeline accessibility

---
 assets/sass/_theme/sections/programs.sass                  | 4 +---
 i18n/fr.yml                                                | 4 ++++
 layouts/partials/blocks/templates/timeline/horizontal.html | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/assets/sass/_theme/sections/programs.sass b/assets/sass/_theme/sections/programs.sass
index baea0cdf..25683218 100644
--- a/assets/sass/_theme/sections/programs.sass
+++ b/assets/sass/_theme/sections/programs.sass
@@ -148,9 +148,7 @@ ol.programs
                 position: absolute
                 right: 0
                 top: $spacing0
-                transform: translateY(calc(#{half($spacing0)} + 25%))
-                @include media-breakpoint-up(md)
-                    transform: translateY(100%)
+                margin-top: px2rem(12)
             a
                 color: inherit
                 text-decoration: none
diff --git a/i18n/fr.yml b/i18n/fr.yml
index 73b6f0ab..b5d20f9f 100644
--- a/i18n/fr.yml
+++ b/i18n/fr.yml
@@ -174,3 +174,7 @@ volumes:
   singular_name: Volume
   table_contents: Table des matières
   volume_number: Volume {{ .Number }}
+blocks:
+  timeline:
+    next: Élément suivant
+    previous: Élément précédent
diff --git a/layouts/partials/blocks/templates/timeline/horizontal.html b/layouts/partials/blocks/templates/timeline/horizontal.html
index f4c6a059..b2eea88c 100644
--- a/layouts/partials/blocks/templates/timeline/horizontal.html
+++ b/layouts/partials/blocks/templates/timeline/horizontal.html
@@ -19,7 +19,7 @@
       </ol>
       {{ if  (gt (len .events) 0) }}
         <div class="timeline-arrows">
-          <button class="previous" disabled title="{{ i18n "blocks.timeline.prev"}}"></button>
+          <button class="previous" disabled title="{{ i18n "blocks.timeline.previous"}}"></button>
           <button class="next" title="{{ i18n "blocks.timeline.next"}}"></button>
         </div>
       {{ end }}
-- 
GitLab