Skip to content

Collapse attribution behind a control #216

@Malvoz

Description

@Malvoz

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:

  1. Controls may be hidden behind the attribution (means we fail SC 2.4.7 Focus Visible):

    attribution-z-index

  2. 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:

    attribution-overload

  3. Sensory overload

    • Visual
    • Auditory (screen readers announce everything in the attribution on page load because it is visible)
  4. 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:

toggle-attribution

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions