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

Support opacity values in increments of 0.25 by default #14980

Merged
merged 5 commits into from
Nov 12, 2024

Conversation

adamwathan
Copy link
Member

This PR updates all areas in the framework that accept opacity values (opacity-*, backdrop-opacity-*, bg-red-500/*, etc.) to accept fractional values in increments of 0.25 instead of just whole numbers.

We noticed we use values like 2.5 and 7.5 pretty regularly in our templates and don't see why those should be treated as any more "weird" than something like opacity-63 which we already support, so baking this in to core.

IntelliSense will still only suggest values in increments of 5 like it did before.

@adamwathan adamwathan requested a review from a team as a code owner November 12, 2024 16:53
@adamwathan adamwathan merged commit 5ce575a into next Nov 12, 2024
1 check passed
@adamwathan adamwathan deleted the feat/support-fractional-opacity-values branch November 12, 2024 19:04
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.

2 participants