From d7696ac4026daf504ebc7e4a6c87bfcf1a7f8e9b Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Mon, 30 Oct 2023 19:59:21 -0700 Subject: [PATCH] Move apply style --- examples/htmx-fiber-todo/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/htmx-fiber-todo/main.go b/examples/htmx-fiber-todo/main.go index 6a90e92..f3b768e 100644 --- a/examples/htmx-fiber-todo/main.go +++ b/examples/htmx-fiber-todo/main.go @@ -97,7 +97,7 @@ func renderTodos(todos []Todo) string { styles.BackgroundColor: "#f9f9f9", } - buttonStyle := elem.ApplyStyle(elem.Style{ + buttonStyle := elem.Style{ styles.BackgroundColor: "#007BFF", styles.Color: "white", styles.BorderStyle: "none", @@ -108,7 +108,7 @@ func renderTodos(todos []Todo) string { styles.FontSize: "14px", styles.Height: "36px", styles.MarginRight: "10px", - }) + } listContainerStyle := elem.Style{ styles.ListStyleType: "none", @@ -144,7 +144,7 @@ func renderTodos(todos []Todo) string { elem.Button( elem.Attrs{ attrs.Type: "submit", - attrs.Style: buttonStyle, + attrs.Style: elem.ApplyStyle(buttonStyle), }, elem.Text("Add"), ),