markdown-it-toc-done-right icon indicating copy to clipboard operation
markdown-it-toc-done-right copied to clipboard

Add property for a screen reader accessible label for the container

Open MarcoZehe opened this issue 4 years ago • 3 comments

MarcoZehe avatar Jan 17 '21 09:01 MarcoZehe

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 Coverage Status
Change from base Build 89: 0.0%
Covered Lines: 53
Relevant Lines: 53

💛 - Coveralls

coveralls avatar Jan 17 '21 09:01 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 Coverage Status
Change from base Build 89: 0.0%
Covered Lines: 53
Relevant Lines: 53

💛 - Coveralls

coveralls avatar Jan 17 '21 09:01 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.

MarcoZehe avatar Jan 17 '21 09:01 MarcoZehe