Apply brand defaults to MJML survey and product buttons
Quality / quality (ubuntu-latest) (push) Failing after 1s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
Clintchiz committed 2026-09-05 17:56:46 +05:30
1 parent 07ed6b2596
commit b0fca36bca
5 files changed
+23 -3

No files matched your search

+3
View File
@@ -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") {