Skip to content

Commit

Permalink
Keep focus on prev/next btns when navigating btwn slides
Browse files Browse the repository at this point in the history
Close #19 - carousel a11y
  • Loading branch information
Sophy committed Jul 3, 2019
1 parent f87e9af commit ca197ad
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions templates/frontend/pages/indexJournal.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,21 @@
<p>
{capture assign="announcementPageUrl"}{url router=$smarty.const.ROUTE_PAGE page="announcement" op="view" path=$announcement->getId()}{/capture}
<a href="{$announcementPageUrl}" class="btn btn-secondary">{translate key="common.more"}</a>

{* Carousel controls *}
<span class="float-right">
<a href="#announcementsCarouselControls" class="btn" role="button" data-slide="prev">
<span aria-hidden="true">←</span>
<span class="sr-only">{translate key="help.next"}</span>
</a>
<a href="#announcementsCarouselControls" class="btn" role="button" data-slide="next">
<span aria-hidden="true">→</span>
<span class="sr-only">{translate key="help.previous"}</span>
</a>
</span>
</p>
</article>
{/foreach}
</div>
{* Carousel controls *}
<div class="text-right">
<a href="#announcementsCarouselControls" class="btn" role="button" data-slide="prev">
<span aria-hidden="true">←</span>
<span class="sr-only">{translate key="help.next"}</span>
</a>
<a href="#announcementsCarouselControls" class="btn" role="button" data-slide="next">
<span aria-hidden="true">→</span>
<span class="sr-only">{translate key="help.previous"}</span>
</a>
</div>
</div>
</aside>
</div>
Expand Down

0 comments on commit ca197ad

Please sign in to comment.