From 11558c899b244688ff9379fa2c0b6e202a0b42c3 Mon Sep 17 00:00:00 2001
From: Claas Kazzer <kazzer@uni-leipzig.de>
Date: Thu, 28 Sep 2023 13:40:23 +0200
Subject: [PATCH] refs #19231 [finc] Section landmark for modal

* wraps modal in a <section> for accessibility

co-authored by: Alexander Purr <purr@ub.uni-leipzig.de>
---
 themes/finc/templates/layout/layout.phtml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/themes/finc/templates/layout/layout.phtml b/themes/finc/templates/layout/layout.phtml
index 4c24153662c..7a385760bed 100644
--- a/themes/finc/templates/layout/layout.phtml
+++ b/themes/finc/templates/layout/layout.phtml
@@ -285,7 +285,8 @@ if (!isset($this->layout()->searchbox)) {
 <?=$this->render('footer.phtml')?>
 
 <!-- MODAL IN CASE WE NEED ONE -->
-<?php /* finc: move X button to logical pos. in structure + use 'aria-describedby' instead of 'aria-labelledby - CK */ ?>
+  <section>
+  <?php /* finc: move X button to logical pos. in structure + use 'aria-describedby' instead of 'aria-labelledby - CK */ ?>
     <div id="modal" class="modal fade hidden-print" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true" aria-describedby="modal-description">
       <div class="modal-dialog">
         <div class="modal-content">
@@ -298,6 +299,8 @@ if (!isset($this->layout()->searchbox)) {
         </div>
       </div>
     </div>
+  </section>
+
     <div class="offcanvas-overlay" data-toggle="offcanvas"></div>
     <?=$this->googleanalytics()?>
     <?=$this->piwik()?>
-- 
GitLab