Display paragraph padding

[MAILPOET-2922]
This commit is contained in:
Pavel Dohnal
2020-06-09 08:55:35 +02:00
committed by Veljko V
parent b833eee498
commit 5034d313a3
3 changed files with 18 additions and 1 deletions

View File

@@ -41,6 +41,9 @@ class Paragraph {
if (isset($block['params']['drop_cap']) && $block['params']['drop_cap'] === '1') {
$classes[] = 'has-drop-cap';
}
if (!empty($block['params']['background_color'])) {
$classes[] = 'mailpoet-has-background-color';
}
if (empty($classes)) {
return null;
}