-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Ring opacity variable being set to 1 on Ring Color #2946
Comments
Hey! This is intentional (whether good or bad) in order to be consistent with how all of the other color opacity utilities work. You'll have to re-specify the opacity when overriding the color I'm afraid and we can't change this without it being a breaking change. Going to close as no plans to do anything about this any time soon since we don't want to make any breaking changes for another couple of years. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem:
Basically, if you create a common class for a component using ring opacity, let's say:
Then create specific classes for each variant using ring color, example:
The ring color utility will set --tw-ring-opacity to 1. As it comes after the first one, it will overwrite the opacity of the common class.
Maybe, instead of the ring color being like this:
It could be like that:
Link to a minimal reproduction:
https://play.tailwindcss.com/TaUPvS5ZDq?file=css
The text was updated successfully, but these errors were encountered: