Skip to content

Prevent hidden tooltips from causing horizontal overflow - #72

Merged
pelcasandra merged 1 commit into
mainfrom
codex/prevent-hidden-tooltip-overflow
Aug 12, 2026
Merged

Prevent hidden tooltips from causing horizontal overflow#72
pelcasandra merged 1 commit into
mainfrom
codex/prevent-hidden-tooltip-overflow

Conversation

@pelcasandra

Copy link
Copy Markdown
Member

Summary

  • clip section-link and code-copy tooltip content while the controls are inactive
  • restore visible overflow only while the copied-state animation is active
  • prevent hidden tooltip geometry from widening responsive article pages

Root cause

The copy tooltips used visibility: hidden, but their absolutely positioned boxes still contributed to horizontal overflow. At an 880 px viewport, the document width expanded to 966 px even though the visible article content fit the viewport.

Impact

Guide pages no longer expose an unintended horizontal scrollbar at intermediate responsive widths. Copy confirmation tooltips remain visible during their active animation.

Validation

  • confirmed scrollWidth === innerWidth from 810 px through 1440 px, including the reported 880 px viewport
  • confirmed horizontal scrolling remains at scrollX = 0
  • ran yarn build, including the security-header verification

@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploy Preview for legendary-lollipop-e2d131 ready!

Name Link
🔨 Latest commit f74d5a3
🔍 Latest deploy log https://app.netlify.com/projects/legendary-lollipop-e2d131/deploys/6a7be2c207cf4900089bb40a
😎 Deploy Preview https://deploy-preview-72--legendary-lollipop-e2d131.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pelcasandra
pelcasandra marked this pull request as ready for review August 12, 2026 03:04
@pelcasandra
pelcasandra merged commit b0ffda2 into main Aug 12, 2026
6 checks passed
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.

1 participant