Skip to content

fix(web): override Heading hover underline on CardLink#2562

Merged
crishpeen merged 2 commits intomainfrom
fix/web-card-link-heading-hover-decoration
Apr 1, 2026
Merged

fix(web): override Heading hover underline on CardLink#2562
crishpeen merged 2 commits intomainfrom
fix/web-card-link-heading-hover-decoration

Conversation

@crishpeen
Copy link
Copy Markdown
Member

Description

Adds explicit &:hover and &:active rules on .CardLink:first-of-type with text-decoration: none so the stretched card link does not pick up the default Heading hover underline when a heading is nested inside the link.

Additional context

Heading styles apply underline on interaction; because CardLink already sets text-decoration: none for the default state, hover/active needed the same reset so nested headings do not show a stray underline.

Issue reference

Link the Jira issue when available (e.g. https://jira.almacareer.tech/browse/DS-XXXX).

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for spirit-design-system-docsite ready!

Name Link
🔨 Latest commit fd5437d
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-docsite/deploys/69cc2e33740d890009bcff1c
😎 Deploy Preview https://deploy-preview-2562--spirit-design-system-docsite.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.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for spirit-design-system canceled.

Name Link
🔨 Latest commit fd5437d
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system/deploys/69cc2e33ffb07200085e3a6a

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for spirit-design-system-storybook canceled.

Name Link
🔨 Latest commit fd5437d
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-storybook/deploys/69cc2e3346672300088bcc37

@github-actions github-actions bot added the bug Something isn't working label Mar 31, 2026
@crishpeen crishpeen added the run-visual-tests Runs visual regression testing on this PR label Mar 31, 2026
Copy link
Copy Markdown
Collaborator

@literat literat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🤷

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review: fix/web-card-link-heading-decoration

Scope: 2 commits, 1 file (+5 / −0)

Overview

  1. Extends .CardLink:first-of-type so :hover and :active explicitly set text-decoration: none, overriding heading link styles from helpers/links/_links.scss that would otherwise show an underline on hover/active when the stretched card link wraps a Heading.

Findings

No issue, todo, suggestion, or chore findings in scope.


Summary

Category Count
Issues (blocking) 0
Issues (non-blocking) 0
Suggestions 0
Questions 0
Notes / thoughts 0

Verdict: APPROVE

The change matches how link/heading specificity is layered in this codebase ([class*='typography-heading'] a:hover in _links.scss) and fixes the regression without broadening scope.


praise: Targeted override on the stretched card link only; minimal diff and the right place to fix the Heading + CardLink interaction.

Open in Web View Automation 

Sent by Cursor Automation: Spirit Cursor Code Review

@github-actions
Copy link
Copy Markdown
Contributor

@crishpeen crishpeen merged commit 591b347 into main Apr 1, 2026
37 of 38 checks passed
@crishpeen crishpeen deleted the fix/web-card-link-heading-hover-decoration branch April 1, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working run-visual-tests Runs visual regression testing on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants