Skip to content

Commit

Permalink
fix: Handle multiple colon in raw style
Browse files Browse the repository at this point in the history
fixes #66
  • Loading branch information
surajshetty3416 committed Feb 2, 2024
1 parent 8fe5d18 commit 4971c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/builder/doctype/builder_page/builder_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def append_style(style_obj, style_tag, style_class, device="desktop"):

def append_state_style(style_obj, style_tag, style_class):
for key, value in style_obj.items():
state, property = key.split(":")
state, property = key.split(":", 1)
style_tag.append(f".{style_class}:{state} {{ {property}: {value} }}")


Expand Down

0 comments on commit 4971c02

Please sign in to comment.