Skip to content
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

Add condition in Button.astro to highlight links based on active page #187

Merged
merged 2 commits into from
Apr 13, 2024

Conversation

AVGVSTVS96
Copy link
Owner

@AVGVSTVS96 AVGVSTVS96 commented Apr 13, 2024

Uses Astro's rntime API to get the current page path and apply text-foreground with cn() to the correct button if the path matches the button's href, defined as 'link' in NavBar.astro

Uses Astro's runtime API to get the current page path and apply `text-foreground` with `cn()` to the correct button if the path matches the button's href, defined as 'link' in `NavBar.astro`
Copy link

codesandbox bot commented Apr 13, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

linear bot commented Apr 13, 2024

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @AVGVSTVS96 and the rest of your teammates on Graphite Graphite

Copy link

cloudflare-workers-and-pages bot commented Apr 13, 2024

Deploying astrosite with  Cloudflare Pages  Cloudflare Pages

Latest commit: 570bb0b
Status: ✅  Deploy successful!
Preview URL: https://2a7baf61.astrosite-aid.pages.dev
Branch Preview URL: https://bas-65.astrosite-aid.pages.dev

View logs

@AVGVSTVS96 AVGVSTVS96 marked this pull request as ready for review April 13, 2024 05:17
@AVGVSTVS96 AVGVSTVS96 merged commit 8c71a20 into master Apr 13, 2024
1 check passed
@AVGVSTVS96 AVGVSTVS96 deleted the bas-65 branch April 13, 2024 05:48
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