Skip to content
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

The two versions have the same class but behave differently #11177

Closed
Godsex opened this issue May 8, 2023 · 1 comment
Closed

The two versions have the same class but behave differently #11177

Godsex opened this issue May 8, 2023 · 1 comment

Comments

@Godsex
Copy link

Godsex commented May 8, 2023

What version of Tailwind CSS are you using?

V3.3.2

What build tool (or framework if it abstracts the build tool) are you using?

Angular14.1.1

What version of Node.js are you using?

V16.16.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/7aef44vzB0
https://play.tailwindcss.com/jIaPV6P7ZS

Describe your issue
The two versions have the same class but behave differently

@adamwathan
Copy link
Member

Hey! This isn't unexpected, prior to Tailwind CSS v3.2.5 the order of the generated CSS was non-deterministic for conflicting classes so depending on which class you used first in your project you could see different results.

This was changed in #10382 to always be deterministic, but even so you shouldn't add conflicting classes to the same element, you should just add the one class you actually want to take effect.

We warn about this in Tailwind Play and in the IntelliSense extension with this lint warning:

image

Hope that helps!

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

No branches or pull requests

2 participants