-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tailwind): className manipulation for component props (#1556)
- Loading branch information
1 parent
6d27a20
commit 5018ce8
Showing
8 changed files
with
55 additions
and
29 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@react-email/tailwind": minor | ||
--- | ||
|
||
- Add support for proper `className` manipulation | ||
- Make inline styles override Tailwind styles. |
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
2 changes: 1 addition & 1 deletion
2
packages/react-email/src/utils/__snapshots__/get-email-component.spec.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
packages/tailwind/src/utils/__snapshots__/quick-safe-render-to-string.spec.tsx.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`quick safe render to string 1`] = `"<div className=\\"bg-red-500 text-gray-200\\"><h1><div className=\\"user-name flex text-2xl\\"></div></h1><span className=\\"dark:bg-green-500 hover:bg-green-800 transition-colors\\"></span></div><span className=\\"dark:bg-green-500 hover:bg-green-800 transition-colors\\"></span>"`; | ||
exports[`quick safe render to string 1`] = `"<div className=\\"bg-red-500 text-gray-200\\"><h1><Component><div className=\\"user-name flex text-2xl\\"></div></Component></h1><span className=\\"dark:bg-green-500 hover:bg-green-800 transition-colors\\"></span></div><span className=\\"dark:bg-green-500 hover:bg-green-800 transition-colors\\"></span>"`; |
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