mapbox / mapbox/mapbox-gl-js

Remove Control z-index:2

Open
#13,271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## Motivation

Since there are a z-index on the control container, we cannot override the the z-index for a specify control.

## Design

Instead of setting z-index: 2 to the control. Create a container for the popup and marker, which place before the control container.

### Mock-Up

There will be no parent z-index. Developer can override the z-index to control which component is on the top.
Plugin developer can choose the container in which their components are placed.

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 tracing the control container and the popup and marker containers described in the issue. Verify how the current parent z-index affects individual controls, then confirm that controls can override their z-index and that plugin components can choose the container where they are placed.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.