-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow grabbing theme values with a decimal (#815)
This PR contains a fix for spacing theme values containing a decimal, like this: ```js tw`pl-[calc(20px + theme(spacing.2.5))]` // β β β β β β ({ "paddingLeft": "calc(20px + 0.625rem)" }); ``` Previously values like this would return an incorrect value. This made square brackets required to select these type of values: ```js tw`pl-[calc(20px + theme(spacing[2.5]))]` ``` Related #814
- Loading branch information
1 parent
e438582
commit 8668bf2
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters