markdown-it-toc-done-right
markdown-it-toc-done-right copied to clipboard
Add property for a screen reader accessible label for the container
Pull Request Test Coverage Report for Build 90
- 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 98.99%
Totals | |
---|---|
Change from base Build 89: | 0.0% |
Covered Lines: | 53 |
Relevant Lines: | 53 |
💛 - Coveralls
Pull Request Test Coverage Report for Build 90
- 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 98.99%
Totals | |
---|---|
Change from base Build 89: | 0.0% |
Covered Lines: | 53 |
Relevant Lines: | 53 |
💛 - Coveralls
This fixes #51. If no containerLabel is passed in, a default of "Table of contents" will be used as the aria-label for the container nav
element. This makes it distinguishable from other possible nav
elements on the same page, which may be used for the main or secondary navigations, or for grouping links in the footer. Blind users who cannot see the whole structure of a page at a glance, will then immediately know that this is a table of contents.