File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
packages/jsx-email/src/components Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ export const Button: JsxEmailComponent<ButtonProps> = ({
32
32
fontSize = 16 ,
33
33
align = 'left' ,
34
34
withBackground = false ,
35
- rel,
36
35
...props
37
36
} ) => {
38
37
// Logic for arcsize
@@ -72,7 +71,6 @@ export const Button: JsxEmailComponent<ButtonProps> = ({
72
71
73
72
const baseButton = (
74
73
< a
75
- rel = { rel }
76
74
href = { href }
77
75
style = { {
78
76
...baseStyles ,
@@ -85,20 +83,6 @@ export const Button: JsxEmailComponent<ButtonProps> = ({
85
83
{ children }
86
84
</ a >
87
85
) ;
88
- const vmlFallbackLinkContents = (
89
- < a
90
- rel = { rel }
91
- href = { href }
92
- style = { {
93
- color : textColor ,
94
- ...baseStyles ,
95
- ...style
96
- } }
97
- { ...props }
98
- >
99
- { children }
100
- </ a >
101
- ) ;
102
86
103
87
return (
104
88
< table
@@ -117,16 +101,14 @@ export const Button: JsxEmailComponent<ButtonProps> = ({
117
101
< span
118
102
dangerouslySetInnerHTML = { {
119
103
__html : `<!--[if mso]>
120
- <v:roundrect ${
121
- rel ? `rel="${ rel } " ` : ''
122
- } href="${ href } " xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" style="height:${ height } px;v-text-anchor:middle;width:${ width } px;" arcsize="${ arcsize } %" ${
104
+ <v:roundrect href="${ href } " xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" style="height:${ height } px;v-text-anchor:middle;width:${ width } px;" arcsize="${ arcsize } %" ${
123
105
borderColor ? `strokecolor=${ borderColor } ` : ''
124
106
} ${ borderSize ? `strokeweight="${ borderSize } px"` : `stroke="false"` } ${
125
107
backgroundColor ? `fillcolor=${ backgroundColor } ` : `fill="false"`
126
108
} >
127
109
<w:anchorlock/>
128
110
<center style="font-size:${ fontSize } px;${ textColor ? `color:${ textColor } ;` : '' } ">
129
- ${ vmlFallbackLinkContents }
111
+ ${ children }
130
112
</center></v:roundrect>
131
113
<![endif]-->`
132
114
} }
You can’t perform that action at this time.
0 commit comments