plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
447 stars 607 forks source link

A11y: ToC Block links are not marked as ToC links #6082

Open Tishasoumya-02 opened 3 months ago

Tishasoumya-02 commented 3 months ago

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):

ichim-david commented 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.