Skip to content

Improve rendering of classes #945

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

Merged
merged 1 commit into from
Sep 13, 2021
Merged

Conversation

RobinMalfait
Copy link
Member

When we have a class like .inset-1\/4 we want it to look like
inset-1/4. We used to remove the first character, but that is not
correct. Some classes are structured like *, ::before, ::after {}.

Instead we now drop leading . characters instead.

When we have a class like `.inset-1\/4` we want it to look like
`inset-1/4`. We used to remove the first character, but that is not
correct. Some classes are structured like `*, ::before, ::after {}`.

Instead we now drop leading `.` characters instead.
@vercel
Copy link

vercel bot commented Sep 13, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tailwindlabs/tailwindcss-com/BnbhVNZHQi3Snb3yPn6dEnrvqFGN
✅ Preview: https://tailwindcss-com-git-improve-class-name-rendering-tailwindlabs.vercel.app

@RobinMalfait RobinMalfait changed the title improve rendering of classes Improve rendering of classes Sep 13, 2021
@RobinMalfait RobinMalfait merged commit a4bd8ee into master Sep 13, 2021
@RobinMalfait RobinMalfait deleted the improve-class-name-rendering branch September 13, 2021 10:31
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.

1 participant