Lullabot / lb-ebook-poc

ISC License
0 stars 0 forks source link

TOC navigation element label #38

Closed claireristow closed 2 months ago

claireristow commented 2 months ago

Provide a label for the Table of Contents <nav> element. Since the element already has a <p> child that reads "Table of Content", I would suggest giving that paragraph element an ID and then giving the navigation element an aria-labelledby attribute referencing that ID.

This will help screen reader users understand what kind of nav it is and will help them determine if they want to skip through reading all of those links.

Eg. https://ebooks.lullabot.com/ebooks/jponch-sample/table-of-contents/

Screenshot 2024-07-17 at 11 12 28 AM