@@ -234,7 +234,7 @@ class EMailTemplate implements IEMailTemplate {
234234 <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%%">
235235 <tr style="padding:0;text-align:left;vertical-align:top">
236236 <td style="-moz-hyphens:auto;-webkit-hyphens:auto;Margin:0;background:%s;border:0 solid %s;border-collapse:collapse!important;color:#fefefe;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;hyphens:auto;line-height:1.3;margin:0;padding:0;text-align:left;vertical-align:top;word-wrap:break-word">
237- <a href="%s" style="Margin:0;border:0 solid %s;border-radius:2px;color:#fefefe ;display:inline-block;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:regular;line-height:1.3;margin:0;padding:10px 25px 10px 25px;text-align:left;text-decoration:none">%s</a>
237+ <a href="%s" style="Margin:0;border:0 solid %s;border-radius:2px;color:%s ;display:inline-block;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:regular;line-height:1.3;margin:0;padding:10px 25px 10px 25px;text-align:left;outline:1px solid %s ;text-decoration:none">%s</a>
238238 </td>
239239 </tr>
240240 </table>
@@ -287,7 +287,7 @@ class EMailTemplate implements IEMailTemplate {
287287 <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%%">
288288 <tr style="padding:0;text-align:left;vertical-align:top">
289289 <td style="-moz-hyphens:auto;-webkit-hyphens:auto;Margin:0;background:%s;border:0 solid %s;border-collapse:collapse!important;color:#fefefe;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;hyphens:auto;line-height:1.3;margin:0;padding:0;text-align:left;vertical-align:top;word-wrap:break-word">
290- <a href="%s" style="Margin:0;border:0 solid %s;border-radius:2px;color:#fefefe ;display:inline-block;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:regular;line-height:1.3;margin:0;padding:10px 25px 10px 25px;text-align:left;text-decoration:none">%s</a>
290+ <a href="%s" style="Margin:0;border:0 solid %s;border-radius:2px;color:%s ;display:inline-block;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:regular;line-height:1.3;margin:0;padding:10px 25px 10px 25px;text-align:left;outline:1px solid %s ;text-decoration:none">%s</a>
291291 </td>
292292 </tr>
293293 </table>
@@ -531,8 +531,9 @@ public function addBodyButtonGroup($textLeft,
531531 $ this ->ensureBodyListClosed ();
532532
533533 $ color = $ this ->themingDefaults ->getColorPrimary ();
534+ $ textColor = $ this ->themingDefaults ->getTextColorPrimary ();
534535
535- $ this ->htmlBody .= vsprintf ($ this ->buttonGroup , [$ color , $ color , $ urlLeft , $ color , htmlspecialchars ($ textLeft ), $ urlRight , htmlspecialchars ($ textRight )]);
536+ $ this ->htmlBody .= vsprintf ($ this ->buttonGroup , [$ color , $ color , $ urlLeft , $ color , $ textColor , $ textColor , htmlspecialchars ($ textLeft ), $ urlRight , htmlspecialchars ($ textRight )]);
536537 $ this ->plainBody .= $ plainTextLeft . ': ' . $ urlLeft . PHP_EOL ;
537538 $ this ->plainBody .= $ plainTextRight . ': ' . $ urlRight . PHP_EOL . PHP_EOL ;
538539
@@ -561,7 +562,8 @@ public function addBodyButton($text, $url, $plainText = '') {
561562 }
562563
563564 $ color = $ this ->themingDefaults ->getColorPrimary ();
564- $ this ->htmlBody .= vsprintf ($ this ->button , [$ color , $ color , $ url , $ color , htmlspecialchars ($ text )]);
565+ $ textColor = $ this ->themingDefaults ->getTextColorPrimary ();
566+ $ this ->htmlBody .= vsprintf ($ this ->button , [$ color , $ color , $ url , $ color , $ textColor , $ textColor , htmlspecialchars ($ text )]);
565567
566568 if ($ plainText !== false ) {
567569 $ this ->plainBody .= $ plainText . ': ' ;
0 commit comments