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
which only hides the content from screen readers, but the button remains focusable, and because it is aria-hidden="true" nothing is announced to the user when it is focused.
aria-hidden
is used in the disabled state:Leaflet.EasyButton/src/easy-button.js
Line 289 in cd53db5
Leaflet.EasyButton/src/easy-button.js
Line 296 in cd53db5
which only hides the content from screen readers, but the button remains focusable, and because it is
aria-hidden="true"
nothing is announced to the user when it is focused.I suggest replacing
aria-hidden
witharia-disabled
to convey to screen readers that the button is currently disabled.See related Leaflet issue: Leaflet/Leaflet#7211 / PR: https://github.com/Leaflet/Leaflet/pull/7280/files.
Other potentially helpful resources:
The text was updated successfully, but these errors were encountered: