Skip to content

Commit

Permalink
Move apply style
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Oct 31, 2023
1 parent 5cc22e7 commit d7696ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/htmx-fiber-todo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -108,7 +108,7 @@ func renderTodos(todos []Todo) string {
styles.FontSize: "14px",
styles.Height: "36px",
styles.MarginRight: "10px",
})
}

listContainerStyle := elem.Style{
styles.ListStyleType: "none",
Expand Down Expand Up @@ -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"),
),
Expand Down

0 comments on commit d7696ac

Please sign in to comment.