Where a post sits in its series, as a ruled box with its part number and every part listed.
<nav class="cap-series" aria-labelledby="series-middle" id="sample-middle">
<h2 class="cap-series-title" id="series-middle">Part 2 of 3: <a href="#series">Field notes</a></h2>
<ol class="cap-series-parts">
<li><a href="#part-1">Field notes, part 1: choosing the sites</a></li>
<li aria-current="page"><span>Field notes, part 2: walking the transects</span></li>
<li><a href="#part-3">Field notes, part 3: what the samples showed</a></li>
</ol>
<nav class="cap-signs cap-series-steps" aria-label="Parts of Field notes"><a class="cap-sign" rel="prev" href="#part-1"><span class="cap-sr-only">Previous part: </span>Field notes, part 1: choosing the sites</a><a class="cap-sign" rel="next" href="#part-3"><span class="cap-sr-only">Next part: </span>Field notes, part 3: what the samples showed</a></nav>
</nav>
Where current sits among parts, in their order: a part's href, or the key keyOf reads (a document's slug). A key not in the list has no neighbors, never someone else's.
Parts and data attributes
Class
Is
.cap-series
the root
.cap-series-parts
a part
.cap-series-steps
a part
.cap-series-title
a part
State
Read from
[aria-current]
an attribute
Accessibility
Key
Does
Tab
Moves through the series link, the other parts and the signs, in reading order. The current part is text and takes no focus.
A nav named by its heading ("Part 2 of 3: Field notes"); the signs are a nav of their own named "Parts of" the series.
The current part carries aria-current="page".
Screen readers: no manual run, by decision; the axe scan and a front-end review stand in.