Skip to content

Redo z-index execution#42607

Merged
mdo merged 3 commits into
v6-devfrom
v6-zindex-update
Jul 17, 2026
Merged

Redo z-index execution#42607
mdo merged 3 commits into
v6-devfrom
v6-zindex-update

Conversation

@mdo

@mdo mdo commented Jun 30, 2026

Copy link
Copy Markdown
Member

Make all z-index part of the same scale. This is an old branch I found that never got opened for review. It's a maybe for me, but curious @julien-deramond and @coliff thoughts.

Alternative here would be to have a utility-focused z-index scale (like the current $zindex-levels map) and a separate $zindex-component-levels for those values. I could see something like this being better for customizing so you don't blow away the component levels by adding a new utility level.

@mdo
mdo requested a review from a team as a code owner June 30, 2026 23:09
@mdo mdo added the css label Jun 30, 2026
@mdo mdo added this to v6.0.0 Jun 30, 2026
@mdo mdo added the v6 label Jun 30, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Jun 30, 2026
@mdo
mdo force-pushed the v6-zindex-update branch from c7474f2 to d52ee9c Compare July 4, 2026 04:09
@coliff

coliff commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

<Callout>
### Low-level stack

We call these “low-level” `z-index` utilities because of their default values of `-1` through `3`, which we use for the layout of overlapping components. High-level `z-index` values are used for overlay components like modals and tooltips.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"like modals and tooltips" should be: "like dialogs and tooltips"

@mdo
mdo force-pushed the v6-zindex-update branch from d52ee9c to 4b78b38 Compare July 17, 2026 03:56
mdo added 3 commits July 16, 2026 21:38
- Move to a combined Sass map
- Generate tokens on the root for all values
- Update components to use CSS variables instead
@mdo
mdo force-pushed the v6-zindex-update branch from 4b78b38 to 39851f5 Compare July 17, 2026 04:40
@mdo
mdo merged commit 1286dc3 into v6-dev Jul 17, 2026
12 checks passed
@mdo
mdo deleted the v6-zindex-update branch July 17, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants