-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Close button should be <button>, have accessible text. #260
Comments
👍, care to provide a PR? |
Unfortunately, no. Sorry. Given this, #259, and a tight project deadline, I needed to find a different accessible-out-of-the-box lightbox. |
Ok, let me see what I can come up with, then. A |
The general a11y rule is to use links for things that go to other pages (or page-like things) and buttons for actions. Therefore, a button is the preferable element. |
I agree. Just not sure I want to add rules like |
Not so bad. Changed it to a |
Fixed in |
At present, the close button is just a
<span>
, so it can't have focus and therefore can't be navigated to with a keyboard. It should be made with a focusable element, probably a<button>
. Further, that button needs a text label of some form. That could be done either with a span with class screen-reader-text or an aria-label attribute.The text was updated successfully, but these errors were encountered: