diff --git a/.changeset/pixel-based-preset-radius-max-width.md b/.changeset/pixel-based-preset-radius-max-width.md new file mode 100644 index 0000000000..04e1fe4bdf --- /dev/null +++ b/.changeset/pixel-based-preset-radius-max-width.md @@ -0,0 +1,5 @@ +--- +"react-email": patch +--- + +Make `pixelBasedPreset` also convert the border radius and max width scales to pixels, so `rounded-*` and `max-w-*` no longer emit `rem`. diff --git a/packages/react-email/src/cli/commands/testing/export.spec.ts b/packages/react-email/src/cli/commands/testing/export.spec.ts index da17efaa94..7f5963247b 100644 --- a/packages/react-email/src/cli/commands/testing/export.spec.ts +++ b/packages/react-email/src/cli/commands/testing/export.spec.ts @@ -58,7 +58,7 @@ test('email export', { retry: 3 }, async () => { cellpadding="0" cellspacing="0" role="presentation" - style="max-width:465px;margin-right:auto;margin-left:auto;margin-bottom:40px;margin-top:40px;border-radius:0.25rem;border-style:solid;border-width:1px;border-color:rgb(234,234,234)"> + style="max-width:465px;margin-right:auto;margin-left:auto;margin-bottom:40px;margin-top:40px;border-radius:4px;border-style:solid;border-width:1px;border-color:rgb(234,234,234)">