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
There are usability issues with the attribution (some of which are mostly apparent on small screens/in small sized maps).
Problems
Here's a default size map with added opacity to the attribution container to demonstrate:
Controls may be hidden behind the attribution (means we fail SC 2.4.7 Focus Visible):
There are no constraints on the element containing the attribution links, which may result in the following depending on the amount of layer sources and/or the map element's size:
Sensory overload
Visual
Auditory (screen readers announce everything in the attribution on page load because it is visible)
Each attribution link adds to the amount of Tab key presses required to sequentially navigate past the map.
Potential solution
Collapse attribution behind a control, like MapBox does:
Collapsing attribution may have several benefits:
There's no visible Layout Shift (so does not contribute to the Cumulative Layout Shift) when populating the attribution container with attributions after fetching layer sources.
How persnickety would Web Platform Tests be about the UI to the attribution control? I like the approach MapBox takes, but some browsers might like to be more explicit.
There are usability issues with the attribution (some of which are mostly apparent on small screens/in small sized maps).
Problems
Here's a default size map with added
opacity
to the attribution container to demonstrate:Controls may be hidden behind the attribution (means we fail SC 2.4.7 Focus Visible):
There are no constraints on the element containing the attribution links, which may result in the following depending on the amount of layer sources and/or the map element's size:
Sensory overload
Each attribution link adds to the amount of Tab key presses required to sequentially navigate past the map.
Potential solution
Collapse attribution behind a control, like MapBox does:
Collapsing attribution may have several benefits:
There's no visible Layout Shift (so does not contribute to the Cumulative Layout Shift) when populating the attribution container with attributions after fetching layer sources.
Improves Perceived Performance.
Mitigates sensory overload for some users.
Less Tab key presses required to sequentially navigate past the map.
The text was updated successfully, but these errors were encountered: