Bug 39677: Add the role presentation to the divider vertical tags

Test plan:

Enable the following system preferences: CookieConsent, EnableOpacSearchHistory, and OpacLangSelectorMode (both top and footer).

-Apply the patch.
-Go to the Koha OPAC.
-Check the vertical dividers in the navigation.
-If they are present with a coherent design, the test is successful.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
nina martinez 2025-04-22 11:25:06 +02:00 committed by Laura_Escamilla
parent 96c13a6f54
commit 86c93b6ef8
No known key found for this signature in database
GPG Key ID: 56A7626A071C052F
2 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@
<!-- /# .dropdown-menu -->
</li>
<!-- / .dropdown -->
<li class="divider-vertical" aria-hidden="false"></li>
<li class="divider-vertical" aria-hidden="false" role="presentation"></li>
</ul>
<!-- /.navbar-nav -->
</div>

View File

@ -46,7 +46,7 @@
</a>
</li>
[% END %]
<li class="divider-vertical"></li>
<li role="presentation" class="divider-vertical"></li>
[% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 || some_public_shelves.count > 0 %]
<li class="nav-item dropdown">
@ -169,7 +169,7 @@
[% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
<p>
<a tabindex="0" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
<span class="divider-vertical"></span>
<span role="presentation" class="divider-vertical"></span>
<a
class="clearsh submit-form-link"
href="#"
@ -189,7 +189,7 @@
</li>
<!-- Cookie consent button for non logged-in users -->
[% IF !loggedinusername %]
<li style="display:none" id="cookieConsentDivider" class="divider-vertical" aria-hidden="true"></li>
<li role="presentation" style="display:none" id="cookieConsentDivider" class="divider-vertical" aria-hidden="true"></li>
<li style="display:none" id="cookieConsentLi" class="nav-item" aria-hidden="true">
<a id="cookieConsentButton" href="#" name="Your cookies" class="nav-link" title="View and amend cookies you have consented to" role="button">
<i class="fa fa-cookie-bite fa-fw fa-icon-black" aria-hidden="true"></i>
@ -199,7 +199,7 @@
[% END %]
[% IF OpacPublic && ( !Koha.Preference( 'opacuserlogin') || !loggedinusername ) %]
[% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
<li class="divider-vertical"></li>
<li role="presentation" class="divider-vertical"></li>
<li class="nav-item search_history">
<a class="nav-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">
<i class="fa fa-calendar-days fa-fw fa-icon-black" aria-hidden="true"></i>