Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Header(): JSX.Element {
data-test="landing-heading"
>
<Heading
className="leading-normal sm:leading-38px tracking-[-3px] sm:tracking-[-0.02em] font-extrabold text-gradient"
className="leading-normal sm:leading-38px tracking-[-3px] sm:tracking-[-0.02em] font-extrabold text-gradient px-2 pb-2"
Copy link
Member

Choose a reason for hiding this comment

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

The solution in this PR does solve the issue, but it feels like a workaround than addressing the root cause. Could you please look into why the cutoff is happening in the first place?

Copy link
Author

Choose a reason for hiding this comment

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

The solution in this PR does solve the issue, but it feels like a workaround than addressing the root cause. Could you please look into why the cutoff is happening in the first place?

I think the cutoff might be happening because of how gradient text works with background-clip: text. Some characters (like the “6”) seem to extend a bit beyond the element’s box, so when things are tightly sized it ends up getting clipped.

level="h1"
typeStyle="heading-lg"
>
Expand Down
Loading