Skip to content

Hover states not included after purge #15

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

Closed
andersklenke opened this issue Jan 18, 2021 · 2 comments
Closed

Hover states not included after purge #15

andersklenke opened this issue Jan 18, 2021 · 2 comments

Comments

@andersklenke
Copy link

andersklenke commented Jan 18, 2021

Hover states works in development but not in production.

I use these hover states for a button hover:bg-green-600 hover:text-white hover:shadow-lg but when css is purged, these classes are not included.

In the tailwind.css file this is what hover:bg-green-600 looks like, so maybe it's due to structure of this, that the Purger doesn't work?

.hover\:bg-green-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(5, 150, 105, var(--tw-bg-opacity));
}
@dhh
Copy link
Member

dhh commented Jan 18, 2021

Fixed in 0.2.1 ✌️❤️

@dhh dhh closed this as completed Jan 18, 2021
@andersklenke
Copy link
Author

@dhh Thanks for this! This introduces an issue where group-hover classes are not removed, eg: group-hover:text-gray-900 is not purged. Unfortunately my regex skills are not strong enough to fix it.

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