fix(browse): correct z-index so skill card cover link receives clicks#167
Merged
fix(browse): correct z-index so skill card cover link receives clicks#167
Conversation
Cover link was at zIndex:0 with content wrapper at zIndex:1, meaning all clicks hit the content div and the navigation anchor was never reached. Fix: cover link → zIndex:1, content wrapper drops z-index, download/GitHub buttons → zIndex:2 so they stay independently clickable. Also removes unused CopyButton import.
Skill Validation ReportNo skill files were changed in this PR — validation skipped. |
raymondk
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Skill cards on
/skills/were not navigating to the skill detail page when clicked. The cover link pattern introduced in #166 had incorrect z-index values:<a href>:zIndex: 0<div>:zIndex: 1Since the content div sat on top of the cover link, all pointer events were captured by the content div and the navigation anchor was never reached.
Fix
<a>zIndex: 0zIndex: 1<div>position: relative; zIndex: 1position: relative(no z-index)<a>buttonposition: relative; zIndex: 2<a>buttonposition: relative; zIndex: 2The two action buttons are lifted to
zIndex: 2so they remain independently clickable above the cover link.Also removes an unused
CopyButtonimport.