Skip to content

Commit

Permalink
Resolves #25
Browse files Browse the repository at this point in the history
Missed the aria-labels on the next and previous links
  • Loading branch information
sirkitree committed Jul 20, 2024
1 parent d2c7067 commit 187b744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/_includes/chapter.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ layout: layout

<nav class="nav-container" aria-label="E-book arrow navigation">
{% if isFirstChapter %}
<a href="../../table-of-contents/">
<a href="../../table-of-contents/" aria-label="Previous chapter">
<div class="nav-button">
<i class="gg-arrow-left"></i>
</div>
</a>
{% else %}
{% if previousChapter %}
<a href="{{ previousChapter.url }}">
<a href="{{ previousChapter.url }}" aria-label="Previous chapter">
<div class="nav-button">
<i class="gg-arrow-left"></i>
</div>
Expand All @@ -52,7 +52,7 @@ layout: layout
{% endif %}

{% if nextChapter %}
<a href="{{ nextChapter.url }}">
<a href="{{ nextChapter.url }}" aria-label="Next chapter">
<div class="nav-button">
<i class="gg-arrow-right"></i>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/table-of-contents.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ title: "Table of Contents"
</nav>

<nav class="nav-container" aria-label="E-book arrow navigation">
<a href="../cover/">
<a href="../cover/" aria-label="Previous page">
<div class="nav-button">
<i class="gg-arrow-left"></i>
</div>
</a>
<a href="../chapters/chapter-1">
<a href="../chapters/chapter-1" aria-label="Next page">
<div class="nav-button">
<i class="gg-arrow-right"></i>
</div>
Expand Down

0 comments on commit 187b744

Please sign in to comment.