You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assistive technology such as screenreaders convey the context menu items (<a>) as a "link". I believe in more cases than not the context menu items behave more like buttons than links. Therefore I suggest using role=button for the context menu items.
Assistive technology such as screenreaders convey the context menu items (
<a>
) as a "link". I believe in more cases than not the context menu items behave more like buttons than links. Therefore I suggest usingrole=button
for the context menu items.Notes:
The W3C Maps for HTML Community Group implemented this for a custom element here.
This would also align with Leaflet controls:
https://github.com/Leaflet/Leaflet/blob/bdd7ebf836201550f6d173943b728098b83f40d5/src/control/Control.Zoom.js#L89-L91
(alternatively, use
<button>
instead.)The text was updated successfully, but these errors were encountered: