visgl / visgl/react-map-gl

[Feat] Ability to update aria-label on mapboxgl canvas

Open
#2,209 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
8.5k
Forks
1.4k
Avg merge
5d 17h
Merged PRs (30d)
3

Description

Target Use Case

I need the ability to update the aria-label of the mapboxgl canvas to provide more meaningful and descriptive textual equivalent for users using a screen reader. Currently the canvas (with class "mapboxgl-canvas" and the canvas that gains focus because it's tabIndex is set to 0) is rendered with the aria-label="Map".

Proposal

Ability to update the aria label of the mapboxgl canvas.

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

Start by locating where the mapboxgl canvas with class "mapboxgl-canvas" receives its default aria-label="Map" and where the focusable canvas is configured. Determine the existing API entry point for passing accessibility options, then verify that the label can be updated and is exposed to screen readers.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.