Skip to content

Fix phantom scrollbars: tooltips must be display:none at rest#20

Merged
creativeskyai merged 1 commit into
mainfrom
tooltip-scrollbar-fix
Jul 17, 2026
Merged

Fix phantom scrollbars: tooltips must be display:none at rest#20
creativeskyai merged 1 commit into
mainfrom
tooltip-scrollbar-fix

Conversation

@creativeskyai

Copy link
Copy Markdown
Owner

Follow-up that was pushed to the #19 branch after it was merged, so it needs its own PR.

visibility: hidden boxes still occupy layout space — every resting tooltip (up to 18rem wide, hanging below its host) added horizontal scrollable overflow to its scroll container, producing phantom left-right scrollbars in the catalog columns and content sections.

  • .tip is now display: none at rest: no box, no overflow, no scrollbars. Verified live: zero horizontally-overflowing elements at desktop and mobile widths.
  • The 400ms hover delay moves from transition-delay to a backwards-filled animation (display: none cannot transition); keyboard focus still shows instantly; the Escape-dismiss rule now uses display: none.
  • tip-start (catalog rows) capped to host width so even a shown tip cannot widen its scroll column.

236 tests, typecheck, build green.

visibility:hidden boxes still occupy layout space, so every resting tip
(up to 18rem wide, hanging below its host) added horizontal scrollable
overflow to its scroll container - phantom left-right scrollbars in the
catalog columns and content sections.

- .tip is now display:none at rest: no box, no overflow, no scrollbars.
  Verified live: zero horizontally-overflowing elements at desktop and
  mobile widths, tips computed display:none.
- The 400ms hover delay moves from transition-delay to an animation with
  a backwards fill (display:none cannot transition); keyboard focus
  still shows instantly. Escape-dismiss rule updated to display:none.
- tip-start (catalog rows) capped to host width so a SHOWN tip cannot
  widen its scroll column either.

236 tests, typecheck, build green.
@creativeskyai
creativeskyai merged commit f2d8ed5 into main Jul 17, 2026
1 check passed
@creativeskyai
creativeskyai deleted the tooltip-scrollbar-fix branch July 17, 2026 15:40
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