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

fix: keep the empty space besides headings out of the clickable area #343

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

jbhoot
Copy link
Contributor

@jbhoot jbhoot commented Feb 18, 2025

In the tanstack docs, each heading is a clickable anchor, but the clickable area also spans the whole width of the content area. An accidental click on this empty white space causes the heading and contents to suddenly yank to the top.

This PR limits the clickable area to just the heading text.

Copy link

netlify bot commented Feb 18, 2025

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1cacf13

@tannerlinsley tannerlinsley merged commit 711c1c0 into TanStack:main Feb 19, 2025
1 check passed
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