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 scroll margin for anchor links; fix conditional header layout #1685

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Sep 26, 2024

@Fil Fil requested a review from mbostock September 26, 2024 12:50
@Fil Fil enabled auto-merge (squash) September 26, 2024 12:50
@mbostock
Copy link
Member

Good find. We can do a simpler fix with scroll-padding-top instead of scroll-margin-top.

@mbostock mbostock disabled auto-merge September 26, 2024 15:48
@mbostock
Copy link
Member

I guess this fix should be applied in the default styles rather than our custom stylesheet? But then we need to know whether the header is shown. Hmm. 🤔

@mbostock mbostock changed the title fix links to anchors fix scroll margin for anchor links; fix conditional header layout Sep 26, 2024
@mbostock mbostock enabled auto-merge (squash) September 26, 2024 16:17
@mbostock mbostock merged commit c3012a3 into main Sep 26, 2024
4 checks passed
@mbostock mbostock deleted the fil/scroll-margin-top branch September 26, 2024 16:19
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.

Space for a header is reserved, even if there isn’t a header
2 participants