Skip to content

fix: keep the hero glyph in the background#320

Merged
btravers merged 1 commit into
mainfrom
fix/hero-glyph-background
Jul 16, 2026
Merged

fix: keep the hero glyph in the background#320
btravers merged 1 commit into
mainfrom
fix/hero-glyph-background

Conversation

@btravers

Copy link
Copy Markdown
Collaborator

The .VPHome::after motif glyph was painting over the hero content: .VPHome used position: relative with no z-index, so it formed no stacking context, and the z-index: 0 absolute pseudo-element rendered above the in-flow hero heading/logo/mascot. Fix isolates .VPHome (isolation: isolate) and drops the glyph to z-index: -1, so it sits behind the content as intended. Same fix applied across all five docs sites.

.VPHome had no stacking context, so the z-index:0 ::after glyph painted
over the hero content. Isolate .VPHome and drop the glyph to z-index:-1.
Copilot AI review requested due to automatic review settings July 16, 2026 10:18

Copilot AI left a comment

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.

Pull request overview

This PR adjusts the VitePress home hero background motif layering so the .VPHome::after glyph renders behind the hero content rather than on top of it.

Changes:

  • Add isolation: isolate to .VPHome to create an isolated stacking context.
  • Move the .VPHome::after pseudo-element behind hero content by changing its z-index from 0 to -1.

Comment thread docs/.vitepress/theme/custom.css
@btravers
btravers merged commit 9c778ee into main Jul 16, 2026
11 checks passed
@btravers
btravers deleted the fix/hero-glyph-background branch July 16, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants