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

Bad sorting for 'dark:' pseudoselector #247

Closed
PatrykKuniczak opened this issue Feb 10, 2024 · 2 comments
Closed

Bad sorting for 'dark:' pseudoselector #247

PatrykKuniczak opened this issue Feb 10, 2024 · 2 comments

Comments

@PatrykKuniczak
Copy link

PatrykKuniczak commented Feb 10, 2024

What version of prettier-plugin-tailwindcss are you using?

v0.5.11

What version of Tailwind CSS are you using?

v3.4.1

What version of Node.js are you using?

v20.9.0

What package manager are you using?

npm

What operating system are you using?

Windows 11

Describe your issue

The 'dark:' pseudoselector aren't sort properly, cause the part of this properties are localized at the start and rest at the end.

className={'dark:via-inactive dark:to-inactive relative mt-5 h-1 dark:bg-gradient-to-r dark:from-active dark:via-[30%]'}
@adamwathan
Copy link
Member

Looks like the via-inactive and to-inactive classes don’t exist so they are getting sorted to the front. Can you share a reproduction?

@PatrykKuniczak
Copy link
Author

Looks like the via-inactive and to-inactive classes don’t exist so they are getting sorted to the front. Can you share a reproduction?

OK, you're right, i incorrectly read 1 article, about styling slider on range input, there's wrong info about 'dark:' pseuodoselector, indeed i don't have this property for the dark mode. Thanks for quick response :)

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