@react-email/tailwind
Advanced tools
Comparing version
@@ -87,3 +87,5 @@ "use strict"; | ||
} else { | ||
domNode.attribs.style = `${twi(domNode.attribs.class)} ${domNode.attribs.style || ""}`; | ||
const currentStyles = domNode.attribs.style ? `${domNode.attribs.style};` : ""; | ||
const tailwindStyles = twi(domNode.attribs.class); | ||
domNode.attribs.style = `${currentStyles} ${tailwindStyles}`; | ||
delete domNode.attribs.class; | ||
@@ -90,0 +92,0 @@ } |
{ | ||
"name": "@react-email/tailwind", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A React component to wrap emails with Tailwind CSS", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14741
1.84%226
1.8%0
-100%