Add background color indicating class also for custom backgrounds

[MAILPOET-2609]
This commit is contained in:
Rostislav Wolny
2020-02-19 12:50:15 +01:00
committed by Pavel Dohnal
parent ab1e2ef0a9
commit 6b718dfb2c
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,8 @@ class Columns {
if (!empty($params['background_color'])) {
$classes[] = "has-{$params['background_color']}-background-color";
$classes[] = "mailpoet_column_has_background";
} elseif (!empty($params['custom_background_color'])) {
$classes[] = "mailpoet_column_has_background";
}
if (!empty($params['text_color'])) {
$classes[] = "has-{$params['text_color']}-color";