Skip to content

Commit 50551f8

Browse files
Improve anchor link (#5721)
The current value is broken, the header has the `.h-16` class name which equals to 4rem.
1 parent 5dcfeb6 commit 50551f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beta/src/styles/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ html.dark .code-step * {
248248
}
249249

250250
.mdx-heading {
251-
scroll-margin-top: 3em;
251+
scroll-margin-top: calc(4rem + 20px);
252252
/* Space for the anchor */
253253
padding-right: 1em;
254254
}

0 commit comments

Comments
 (0)