Repository navigation
Make csa-card-hover cards clickable via stretched csa-go link - #5
Merged
Merged
Conversation
Adds position:relative to .csa-card-hover and a ::after pseudo-element on .csa-card-hover .csa-go that covers the full card surface, so any click on the card follows the link. Other interactive elements inside the card need position:relative + z-index:1 to remain clickable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
@lumpster-csa I'd like your approval before merging this. I noticed that cards with the |
Collaborator
|
@apannetrat good catch and makes perfect sense to me for the entire card to be clickable. |
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.
Summary
position: relativeto.csa-card-hoverto establish the stacking context::afterpseudo-element on.csa-card-hover .csa-gostretched toinset: 0, making the entire card surface trigger the link on clickCaveat
Any other interactive element (second link, button) placed inside a hover card will need
position: relative; z-index: 1to sit above the overlay and remain independently clickable.Test plan
csa-gohrefcsa-golink text — should still work normally