Skip to content

bug: fix anchor hover color/behavior in dark mode #1041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

alexakreizinger
Copy link

this PR fixes an issue with anchor hover links in dark mode.

in light mode, hovering your cursor next to an h2/h3/etc header triggers an anchor to appear in an accent color (based on your chosen color scheme). if you move your cursor away, the anchor fades quickly.

5F83890E-94BC-4B9D-8695-8C4C7EEC13A5

currently, in dark mode, hovering your cursor next to the same h2/h3/etc header triggers an anchor to appear, but with a notable lack of color and odd "flashing" behavior:

FF9305B1-2191-4520-A3EB-CF6F3BAAA441

this fix changes the relevant dark mode CSS class from --color-neutral-700 to --color-primary-700. after implementing this change, anchor links in dark mode now appear in an appropriate accent color and with a smooth, non-flashing hover transition:

108296AF-0541-4C16-AE84-16D7D8E3C407

(light mode is unaffected by this change.)

Copy link

netlify bot commented Mar 27, 2025

Deploy Preview for hugo-congo ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 80bb95b
🔍 Latest deploy log https://app.netlify.com/sites/hugo-congo/deploys/67e587ba1642040007858421
😎 Deploy Preview https://deploy-preview-1041--hugo-congo.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 site configuration.

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