-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
[accessibility] Accessible target size for controls #363
Comments
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
Shame this was closed - it's a fantastic idea. Particularly - but not only - for those with motor control challenges. |
Rem scaling would be great. Font/icon/layout sizing can then scale according to the user device's system font size if the root font is set appropriately on a page. E.g. for Apple. A workaround is to add one's own overrides for Maplibre's CSS to change px definitions to rem. |
Feel free to submit a PR. |
The WCAG 2.1 SC 2.5.5 Target Size requires targets for pointer input to be at least 44 by 44 in CSS pixels. Meeting this requirement has multiple benefits, it'd be great to pass this criteria for the commonly used controls:
maplibregl-ctrl-attrib-button
)maplibregl-popup-close-button
)maplibregl-ctrl-fullscreen
)maplibregl-ctrl-geolocate
)maplibregl-marker
)maplibregl-ctrl-zoom-in
)maplibregl-ctrl-zoom-out
)maplibregl-ctrl-compass
)It may not be desirable to increase the size of the icons themselves, in which case
padding
can be used to increase the size of the tap targets.(The same issue was also reported with MapBox: mapbox/mapbox-gl-js#11037.)
The text was updated successfully, but these errors were encountered: