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
aria-pressed is similar to aria-expanded in that it indicates the state of the button, but aria-expanded is more appropriate as it specifically:
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
The distinction is that with aria-expanded the (non-visual) user will expect other ("new") content to be available after pressing the button. This is mostly important as there is no focus delegation (which is fine if it's conveyed to the user that new content is available through aria-expanded).
The text was updated successfully, but these errors were encountered:
Regarding:
mapbox-gl-js/src/ui/control/attribution_control.js
Lines 103 to 111 in 36533f3
aria-pressed
is similar toaria-expanded
in that it indicates the state of the button, butaria-expanded
is more appropriate as it specifically:The distinction is that with
aria-expanded
the (non-visual) user will expect other ("new") content to be available after pressing the button. This is mostly important as there is no focus delegation (which is fine if it's conveyed to the user that new content is available througharia-expanded
).The text was updated successfully, but these errors were encountered: