-
Notifications
You must be signed in to change notification settings - Fork 432
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
Accessible buttons #713
Comments
@Falke-Design In that case |
Ok I added the tabindex. |
Yes |
@Malvoz is it possible to make a click on keyboard enter like a click in leaflet without adding a key-event listener? A browser default function like tabindex? Because now it is possible to tab through the draw buttons but it is not possible to activate them with enter |
To make buttons accessible with enter, the button needs
|
<a>
buttons (such as<a class="leaflet-buttons-control-button">
and<a class="leaflet-pm-action">
) are not keyboard focusable/operable. Additionally, they're announced as "link" using a screen reader (missingrole="button"
). Otherwise<button type="button">
is recommended, but requires additional styling to reset browser defaults.See related resources:
The text was updated successfully, but these errors were encountered: