Skip to content

Commit de9d2ff

Browse files
authoredOct 21, 2024··
fix(react-email): Default props override props in Row and Section (#1731)
1 parent 30a20d6 commit de9d2ff

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed
 

Diff for: ‎.changeset/fifty-cougars-watch.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@react-email/section": patch
3+
"@react-email/row": patch
4+
---
5+
6+
Fixes default attributes overriding props

Diff for: ‎packages/row/src/row.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export const Row = React.forwardRef<HTMLTableElement, RowProps>(
1212
<table
1313
align="center"
1414
width="100%"
15-
{...props}
1615
border={0}
1716
cellPadding="0"
1817
cellSpacing="0"
19-
ref={ref}
2018
role="presentation"
19+
{...props}
20+
ref={ref}
2121
style={style}
2222
>
2323
<tbody style={{ width: "100%" }}>

Diff for: ‎packages/section/src/section.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ export const Section = React.forwardRef<HTMLTableElement, SectionProps>(
88
<table
99
align="center"
1010
width="100%"
11-
{...props}
1211
border={0}
1312
cellPadding="0"
1413
cellSpacing="0"
15-
ref={ref}
1614
role="presentation"
15+
{...props}
16+
ref={ref}
1717
style={style}
1818
>
1919
<tbody>

0 commit comments

Comments
 (0)
Please sign in to comment.