Skip to content

fix(docs): keep RTD version-warning notification clear of the site header#16870

Merged
nikola-matic merged 1 commit into
developfrom
fix-docs-version-warning-behind-header
Jul 14, 2026
Merged

fix(docs): keep RTD version-warning notification clear of the site header#16870
nikola-matic merged 1 commit into
developfrom
fix-docs-version-warning-behind-header

Conversation

@kuzdogan

Copy link
Copy Markdown
Member

The Read the Docs version-warning notification renders behind our fixed site header (the header's z-index: 99999 covers the toast's z-index: 1750, and they overlap vertically), so it's effectively invisible on older-version pages.

Example: https://docs.soliditylang.org/en/v0.8.30/

This styles the notification host to sit below the header and above its z-index.

🤖 Generated with Claude Code

…ader

The Read the Docs Addons "old version" notification renders as a fixed
toast at top:2rem / z-index:1750 inside its own shadow DOM. The custom
Solidity docs header (.unified-header) is position:fixed, --navHeight
tall, at z-index:99999, so it both overlaps the toast vertically and
paints over it, leaving the notification effectively invisible.

Style the notification host element to sit below the header and above
its z-index. The transform makes the host the containing block for the
addon's fixed toast, shifting its internal top:2rem offset down past the
header.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@nikola-matic nikola-matic merged commit 902f848 into develop Jul 14, 2026
85 checks passed
@nikola-matic nikola-matic deleted the fix-docs-version-warning-behind-header branch July 14, 2026 15:26
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.

3 participants