lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.14k stars 1.77k forks source link

Accessiblity error on arrows #712

Open giuliac89 opened 3 years ago

giuliac89 commented 3 years ago

What version of Lightbox2 you are using? Lightbox 2.11.3

Validating my page I have this error on the navigation arrows, due to the empty href: Anchor element found with no link content and no name and/or ID attribute.

Is there a way to customize the html or convert the link into a button? Alternatively you can add the attribute role="button" to the link.

lokesh commented 1 year ago

This has been queued up for a future release.

The empty anchors should be replaced by <button>s or communicate their button role and implement the necessary input handling for space and enter presses.