Skip to content

Conversation

@adamwathan
Copy link
Member

Fixes #15096.

We were mistakenly reading from the --tracking sub-property but should be reading from --letter-spacing.

To test this I copied the reproduction from the issue into our Vite playground and made sure the custom letter-spacing was being applied as expected:

image

@adamwathan adamwathan requested a review from a team as a code owner November 22, 2024 13:35
Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

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

LGTM! but let's revert the playground change

Comment on lines 2 to 8

@theme {
--text-heading3xl: 2.25rem;
--text-heading3xl--line-height: 3rem;
--text-heading3xl--font-weight: 700;
--text-heading3xl--letter-spacing: -0.08375rem;
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@theme {
--text-heading3xl: 2.25rem;
--text-heading3xl--line-height: 3rem;
--text-heading3xl--font-weight: 700;
--text-heading3xl--letter-spacing: -0.08375rem;
}

Let's revert this change

@adamwathan adamwathan merged commit c5a0b54 into next Nov 22, 2024
1 check passed
@adamwathan adamwathan deleted the fix/use-font-size-letter-spacing branch November 22, 2024 13:49
adamwathan added a commit that referenced this pull request Nov 22, 2024
…15099)

Fixes #15096.

We were mistakenly reading from the `--tracking` sub-property but should
be reading from `--letter-spacing`.

To test this I copied the reproduction from the issue into our Vite
playground and made sure the custom letter-spacing was being applied as
expected:

<img width="1443" alt="image"
src="https://github.com/user-attachments/assets/bfc9ca23-bfc7-40d4-aec0-d3e715312eac">

---------

Co-authored-by: Adam Wathan <[email protected]>
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.

[v4] --letter-spacing not included in the final CSS

3 participants