stefanocudini / leaflet-gps

Simple leaflet control plugin for tracking gps position
https://opengeo.tech/maps/leaflet-gps
MIT License
118 stars 47 forks source link

[accessibility] Use `<button>` or `<a role="button">` #23

Open Malvoz opened 3 years ago

Malvoz commented 3 years ago

<a class="gps-button"> button is announced as a "link" using a screen reader (missing role="button", see Leaflet controls).

Another option is to use <button type="button">, but requires additional styling to reset browser defaults.


Other potentially helpful resources:

stefanocudini commented 1 year ago

@Malvoz great can you send us a little PR about this? I think is oneline around button constructor code.