Skip to content

Add theme-consistent solid hover border effect to homepage feature cards#433

Merged
MohabMohie merged 2 commits into
masterfrom
copilot/add-border-hover-effect
Mar 31, 2026
Merged

Add theme-consistent solid hover border effect to homepage feature cards#433
MohabMohie merged 2 commits into
masterfrom
copilot/add-border-hover-effect

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

This updates the homepage cards to match the requested “border-on-hover” interaction from the reference while keeping it consistent with the site’s existing color system (solid primary color, no gradient). It also preserves current homepage performance posture by implementing the effect as a lightweight CSS overlay.

  • Card hover border interaction

    • Added a pseudo-element overlay on HomepageFeatures cards to render a hover-only border.
    • Border uses var(--ifm-color-primary) so light/dark themes stay aligned with existing palette.
    • Existing lift/shadow hover behavior remains unchanged.
  • Motion/accessibility behavior

    • Scoped border transition to prefers-reduced-motion: no-preference.
    • Keeps the visual effect functional without forcing motion where reduced-motion is preferred.
  • Guardrail update for homepage behavior

    • Extended homepage performance test assertions to verify the new hover-border contract (overlay selector, color source, positioning, opacity states, and non-interactive pointer behavior).
.featureCard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
}

.featureCard:hover::after {
  border-color: var(--ifm-color-primary);
  opacity: 1;
}

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 31, 2026

Deploy Preview for shaftengine ready!

Name Link
🔨 Latest commit 4b5b932
🔍 Latest deploy log https://app.netlify.com/projects/shaftengine/deploys/69cbaecf587f6d0008819260
😎 Deploy Preview https://deploy-preview-433--shaftengine.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 87
Accessibility: 93
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI changed the title [WIP] Add border hover effect to home page cards Add theme-consistent solid hover border effect to homepage feature cards Mar 31, 2026
Copilot AI requested a review from MohabMohie March 31, 2026 11:24
@MohabMohie MohabMohie marked this pull request as ready for review March 31, 2026 11:29
@MohabMohie MohabMohie merged commit 1ea9e07 into master Mar 31, 2026
9 of 10 checks passed
@MohabMohie MohabMohie deleted the copilot/add-border-hover-effect branch March 31, 2026 20:03
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.

2 participants