Skip to content

Commit

Permalink
Update the scroll-margin-top for headings
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceHumphreys committed Feb 15, 2024
1 parent ebe3217 commit 849d61b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/nodes/heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Heading = ({
role="presentation"
className={clsx(
'mb-2 mt-6 items-center hover:[&>*]:opacity-100',
level !== 1 && 'group scroll-mt-20'
level !== 1 && 'group scroll-mt-28'
)}
>
<div className="flex items-center justify-start">
Expand Down
2 changes: 1 addition & 1 deletion components/tags/step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Step = ({ title, level = 2, id, children }: StepProps) => {
data-text={children}
role="presentation"
// eslint-disable-next-line tailwindcss/no-custom-classname
className="step mb-0 mt-4 scroll-mt-[76px] items-center text-xl hover:[&>*]:opacity-100"
className="step mb-0 mt-4 scroll-mt-28 items-center text-xl hover:[&>*]:opacity-100"
>
<span role="heading" aria-level={level}>
{title}
Expand Down

0 comments on commit 849d61b

Please sign in to comment.