-
Notifications
You must be signed in to change notification settings - Fork 16
Description
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.

-
Improves Perceived Performance.
-
Mitigates sensory overload for some users.
-
Less Tab key presses required to sequentially navigate past the map.
