Open Tishasoumya-02 opened 3 months ago
I left a review on the pull request https://github.com/plone/volto/pull/6084#pullrequestreview-2105250544 From my point of view this proposed solution does more harm than good and although we can improve the toc accesibility by ensuring we have good markup this solution will not improve the accessibility but decrease it.
Problem: Every ToC-Link are not labeled as such. Whenever a screenreader is used, it doesn't tell the user that the link is a ToC-Link. The link seems to be linking to another page, but that is not the case. It's always an anchor link. This might confuse the user.
Proposed Solution: Mark the links as table-of-contents-links with alt-tags or ARIA-labels. A screenreader should read "Title-of-the-link, table-of-content-link" or something similar.
Steps to reproduce:
Expected result:
WCAG - 2.1:
BIK BITV-Test (Web):