Closed johnpyp closed 6 months ago
Thanks for the issue. Have you tried the !
tailwind class prefix to override?
In v1.3.0 we introduced disableDefaultStyle
for components which have a default style like Text
. In cases where !
doesn't work, using that prop will get you around any overriding issues.
@jsxp-email/cli
Version?: N/AExpected Behavior
Text
component either shouldn't have default inline styles, or they should be somehow overrideable by the Tailwind class being present. It also isn't enough to do something likestyle={{}}
to clear it currently.Actual Behavior
Text
component has hardcoded styles that override tailwind classes. Like in the example, thetext-2xl
class is present and ends up in the compiled html, but because of thestyle
tag on theText
component, it doesn't matter.Additional Information
This happens with and without the
production
flag set.