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

Feat/27/anchor links #38

Merged
merged 15 commits into from
Nov 26, 2024
Merged

Feat/27/anchor links #38

merged 15 commits into from
Nov 26, 2024

Conversation

juancwu
Copy link
Contributor

@juancwu juancwu commented Nov 22, 2024

Add component that creates a list of anchor links to smooth scroll into a section/target. Aside from smooth scroll into view, the component handles the logic to detect if any given target is in view and provides an active property to update styles when rendering in a page.

Went with the function render pattern for children because it allows more versatile styling without compromising usability.

@juancwu juancwu added the enhancement New feature or request label Nov 22, 2024
@juancwu juancwu self-assigned this Nov 22, 2024
@juancwu juancwu linked an issue Nov 22, 2024 that may be closed by this pull request
Copy link
Member

@aidantrabs aidantrabs left a comment

Choose a reason for hiding this comment

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

lgtm

@juancwu juancwu merged commit 8dc2011 into main Nov 26, 2024
3 checks passed
@juancwu juancwu deleted the feat/27/anchor-links branch November 26, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

FE: Anchor Links/Sections Component
2 participants