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
This would cause some screen readers, such as NVDA, to announce Zoom in twice. Although this is considered a bug (nvaccess/nvda#7841, in the case of NVDA) the issue can be fixed by conveying only one of title or aria-label.
To avoid double speak while maintaining the native tooltips from title the title attribute could be set on the maplibregl-ctrl-icon icon instead:
In this case the aria-label would be conveyed to ATs and the native tooltip still available on hover. But there would be no double speak as the title is hidden from ATs due to aria-hidden="true".
Most controls use both
aria-label
andtitle
with identical values,for example the zoom in control:
This would cause some screen readers, such as NVDA, to announce nvaccess/nvda#7841, in the case of NVDA) the issue can be fixed by conveying only one of
twice. Although this is considered a bug (title
oraria-label
.To avoid double speak while maintaining the native tooltips from
title
thetitle
attribute could be set on themaplibregl-ctrl-icon
icon instead:In this case the
aria-label
would be conveyed to ATs and the native tooltip still available on hover. But there would be no double speak as thetitle
is hidden from ATs due toaria-hidden="true"
.(The same issue was also reported with MapBox: mapbox/mapbox-gl-js#11036.)
The text was updated successfully, but these errors were encountered: