Apply brand defaults to MJML survey and product buttons
This commit is contained in:
1 parent
07ed6b2596
commit
b0fca36bca
5 files changed
+23
-3
No files matched your search
@@ -140,6 +140,9 @@ export function importMjml(
|
||||
} else if (defaults.tagName === "mj-text") {
|
||||
onlyAttributes(defaults, ["color"]);
|
||||
if (defaults.attributes?.color) brand.textColor = decode(defaults.attributes.color);
|
||||
} else if (defaults.tagName === "mj-button") {
|
||||
onlyAttributes(defaults, ["background-color"]);
|
||||
if (defaults.attributes?.["background-color"]) brand.linkColor = decode(defaults.attributes["background-color"]);
|
||||
} else attributeError(defaults);
|
||||
}
|
||||
} else if (node.tagName === "mj-breakpoint") {
|
||||
|
||||
Reference in new issue
Block a user