Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slider template accessibility fixes #50

Merged
merged 1 commit into from
Jan 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions views/templates/hook/slider.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
{/if}

<li class="swiper-slide homeslider__slide">
<a href="{$slide.url}">
<a
href="{$slide.url}"
{if $slide.title}
title="{$slide.title}"
{/if}
>
{if $slide@first}
<img
class="img-fluid homeslider__img"
Expand Down Expand Up @@ -84,10 +89,16 @@
{/images_block}
</ul>
{if $homeslider.slides|count > 1}
<div class="swiper-button-prev swiper-button-custom homeslider__arrow homeslider__arrow--prev">
<div
class="swiper-button-prev swiper-button-custom homeslider__arrow homeslider__arrow--prev"
aria-label="Previous"
>
<i class="material-icons">&#xE314;</i>
</div>
<div class="swiper-button-next swiper-button-custom homeslider__arrow homeslider__arrow--next">
<div
class="swiper-button-next swiper-button-custom homeslider__arrow homeslider__arrow--next"
aria-label="Next"
>
<i class="material-icons">&#xE315;</i>
</div>
{/if}
Expand Down