We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd49775 commit 7fadf7dCopy full SHA for 7fadf7d
src/mailer.ts
@@ -165,9 +165,9 @@ export class CreateEmail {
165
break;
166
case 'button':
167
if (c.link) {
168
- el = `<a href="${c.link}" style="color:#fff;" width="100%">${el}</a>`;
+ el = `<a href="${c.link}" style="color:#fff;" width="100%">${c.text}</a>`;
169
} else {
170
- el = `<span style="color:#fff;" width="100%">${el}</span>`;
+ el = `<span style="color:#fff;" width="100%">${c.text}</span>`;
171
}
172
innerHTML += `\n<tr><td ${c.primary ? 'class="primary button" bgcolor="#673db6"' : 'class="secondary button" bgcolor="#373C65"'} style="font-weight:700;border-radius:10px;padding:12px" align="center">${this.addGmailDarkModeFix(el)}</td></tr>`;
173
0 commit comments