From ab893062ae706c8c81f46d7b4263dcb8a3c65e31 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 8 Apr 2024 12:55:56 +0100 Subject: [PATCH] Default colors --- mailpoet/lib/EmailEditor/Engine/Renderer/Renderer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailpoet/lib/EmailEditor/Engine/Renderer/Renderer.php b/mailpoet/lib/EmailEditor/Engine/Renderer/Renderer.php index aeeb0ed755..1122bbbb16 100644 --- a/mailpoet/lib/EmailEditor/Engine/Renderer/Renderer.php +++ b/mailpoet/lib/EmailEditor/Engine/Renderer/Renderer.php @@ -49,9 +49,9 @@ class Renderer { $width = $layout['contentSize']; $paddingTop = $themeStyles['spacing']['padding']['top'] ?? '0px'; $paddingBottom = $themeStyles['spacing']['padding']['bottom'] ?? '0px'; - $contentBackground = $themeStyles['color']['background']['content']; - $layoutBackground = $themeStyles['color']['background']['layout']; - $contentFontFamily = $themeStyles['typography']['fontFamily']; + $contentBackground = $themeStyles['color']['background']['content'] ?? 'inherit'; + $layoutBackground = $themeStyles['color']['background']['layout'] ?? 'inherit'; + $contentFontFamily = $themeStyles['typography']['fontFamily'] ?? 'inherit'; $logoHtml = $this->servicesChecker->isPremiumPluginActive() ? '' : 'MailPoet'; $templateStyles = file_get_contents(dirname(__FILE__) . '/' . self::TEMPLATE_STYLES_FILE);