Shells
Pagination
A row of page links. The current page is filled and blocked, the same treatment the current tab gets, because it is the same idea: this one is on.
.axi-pages__gap is the elided run between two page numbers. It is
the only thing in the row that is not a link, and it is never focusable.
Mark the current page with aria-current="page", which is what draws the fill
- there is no
--currentmodifier class to keep in sync with it.
A long run with an elision
<nav class="axi-pages" aria-label="Pagination">
<a class="axi-pages__n" href="#" aria-label="Previous">‹</a>
<a class="axi-pages__n" href="#">1</a>
<a class="axi-pages__n" href="#" aria-current="page">2</a>
<a class="axi-pages__n" href="#">3</a>
<span class="axi-pages__gap">…</span>
<a class="axi-pages__n" href="#">9</a>
<a class="axi-pages__n" href="#" aria-label="Next">›</a>
</nav>
A short run
<nav class="axi-pages" aria-label="Pagination">
<a class="axi-pages__n" href="#" aria-current="page">1</a>
<a class="axi-pages__n" href="#">2</a>
<a class="axi-pages__n" href="#">3</a>
</nav>