mapbox / mapbox/mapbox-gl-js

[accessibility] Collapsed attribution button should have discernible text

Open
#13,143 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Hi team,

It seems as though when rendering the collapsed attribution button, the <span> nested within the button has an appropriate title attribute applied to it, but the <button> itself does not. This does not meet WCAG and will fail when running Lighthouse/Axe.

image

mapbox-gl-js version: 3.2.0

browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Steps to Trigger Behavior
  1. Load the map at a screen width that renders the collapsed attribution button
  2. Run Lighthouse/Axe devtools, or inspect the element to see the <button> element doesn't have discernible text

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by loading the map at a width that renders the collapsed attribution button, then inspect the button with Lighthouse or Axe. Trace the collapsed attribution rendering entry point and ensure the button itself has discernible text; done means the accessibility audit no longer reports this violation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.