verbb / footnotes

Craft CMS plugin for adding a footnotes feature to Redactor fields and Twig templates
MIT License
21 stars 2 forks source link

Accessibility Recommendations #15

Open jpobojewski opened 1 year ago

jpobojewski commented 1 year ago

What are you trying to do?

Screenshot 2023-08-14 at 2 30 54 PM

When in use on a client website, accessibility audits are flagging the interactivity of the footnote <sup> elements.

What's your proposed solution?

The audit tool is requesting either using an alternative markup or making them more accessible to screen readers via a tabindex attribute. Is this possible to add?

Additional context

No response

engram-design commented 1 year ago

On its own, a <sup> isn't interactive. If you were to enable outputting of anchor links, these are accessible through keyboard navigation. My primary concern is that the default HTML Purified config will actually strip the attribute out.

Nevertheless, I've updated this for the next release. To get this early, run composer require verbb/footnotes:"dev-craft-4 as 4.0.1".