Potentially use SVG <title>
over aria-label
+ Leaflet Tooltip methods
#480
Labels
basic styling
Elements should only have basic and native-like styling (W3C TAG Components Guideline)
simplification
wontfix
<featurecaption>
s are realized by:aria-label
on SVG<g>
elements to provide the accessible namearia-label
, to be displayed on hover)The SVG
<title>
element (as child of<g>
) can be used to achieve both of the above. The native tooltip from<title>
is visually similar - if not identical - to thetitle
attribute.Pros of SVG
<title>
:<featurecaption>
should be treated similar to the SVG<title>
element and/or the HTML globaltitle
attribute (in regards to displaying a native tooltip on hover)role="tooltip"
or Live Region ARIA attributes) and we pull in that release then we'd have both the tooltip andaria-label
announced by screen readers.Cons:
The text was updated successfully, but these errors were encountered: