diff --git a/builder/builder/doctype/builder_page/builder_page.py b/builder/builder/doctype/builder_page/builder_page.py index 1ee8a6d7..a0844378 100644 --- a/builder/builder/doctype/builder_page/builder_page.py +++ b/builder/builder/doctype/builder_page/builder_page.py @@ -582,9 +582,12 @@ def set_dynamic_content_placeholder(block, data_key=False): _property ] = f"{{{{ {key} or '{escape_single_quotes(block['attributes'].get(_property, ''))}' }}}}" elif _type == "style": - block["baseStyles"][ - _property - ] = f"{{{{ {key} or '{escape_single_quotes(block['baseStyles'].get(_property, ''))}' }}}}" + if not block["attributes"].get("style"): + block["attributes"]["style"] = "" + css_property = camel_case_to_kebab_case(_property) + block["attributes"][ + "style" + ] += f"{css_property}: {{{{ {key} or '{escape_single_quotes(block['baseStyles'].get(_property, '') or '')}' }}}};" elif _type == "key" and not block.get("isRepeaterBlock"): block[_property] = f"{{{{ {key} or '{escape_single_quotes(block.get(_property, ''))}' }}}}"