Skip to content

fix: stop the homepage dot pattern from swallowing button clicks - #575

Merged
DavidMinarsch merged 1 commit into
mainfrom
fix/homepage-buttons-not-clickable
Sep 5, 2026
Merged

fix: stop the homepage dot pattern from swallowing button clicks#575
DavidMinarsch merged 1 commit into
mainfrom
fix/homepage-buttons-not-clickable

Conversation

@DavidMinarsch

Copy link
Copy Markdown
Contributor

Problem

The Get OLAS and Tokenomics buttons in the homepage agent-economies section are not clickable.

Cause

.activity-bg (the section's dot pattern) is an absolutely-positioned, full-height sibling of the section content with z-index: 0, so it paints over — and hit-tests above — the section's static boxes. The two buttons carried z-10 to sit above it. 0435926 removed that z-10 because the elevated buttons showed through the expanded mobile chain dropdown; that fixed the layering but dropped both buttons underneath the dot overlay, where it eats their clicks.

Fix

The dot layer is purely decorative, so exclude it from hit-testing (pointer-events: none) rather than re-elevating the buttons — re-adding z-10 would just bring the dropdown bug back. .circles-bg, the analogous decorative overlay directly above it in globals.css, already does exactly this; .activity-bg was simply missing it.

Paint order is unchanged, so the section looks identical.

Verification

Headless-Chromium hit test against the dev server, checking document.elementFromPoint at each button's centre:

Get OLAS Tokenomics
before (pointer-events: auto) div.activity-bg div.activity-bg
after (this PR) the <a> itself ✅ the <a> itself ✅
  • Clicking Get OLAS now navigates to /olas-token#token-details and lands scrolled to the anchor.
  • Mobile (390×844): the chain dropdown still owns every point over its own items — no regression to what 0435926 fixed.
  • yarn lint clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01D3mccotoPBzhS53E9LRS3z

.activity-bg is an absolutely-positioned, full-height sibling of the
agent-economies section content with z-index: 0, so it paints over — and
hit-tests above — the section's static boxes. The Get OLAS and Tokenomics
buttons carried z-10 to sit above it; 0435926 removed that z-10 because
the elevated buttons showed through the mobile chain dropdown, which
fixed the layering but left both buttons unclickable.

The layer is purely decorative, so exclude it from hit-testing rather
than re-elevating the buttons. .circles-bg, the analogous decorative
overlay directly above it in this file, already does exactly this.

Verified with a headless-Chromium hit test: at each button's centre
document.elementFromPoint returns div.activity-bg before the change and
the <a> after it; clicking Get OLAS now lands on /olas-token#token-details
scrolled to the anchor, and the mobile dropdown still owns its own points.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3mccotoPBzhS53E9LRS3z
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
olas-website Ready Ready Preview Sep 5, 2026 6:33pm UTC

Request Review

@DavidMinarsch
DavidMinarsch merged commit 25188cf into main Sep 5, 2026
10 checks passed
@DavidMinarsch
DavidMinarsch deleted the fix/homepage-buttons-not-clickable branch September 5, 2026 18:35
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