From 74e0cb9350ee896b5745e877f4a6684c22e14ce1 Mon Sep 17 00:00:00 2001 From: Stefan Anevski Date: Mon, 23 Oct 2023 00:03:09 +0200 Subject: [PATCH 1/2] Refactor: Add missing Box Model Style Properties --- styles/styles.go | 58 +++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/styles/styles.go b/styles/styles.go index 3507047..7c0e16a 100644 --- a/styles/styles.go +++ b/styles/styles.go @@ -42,26 +42,44 @@ const ( GridTemplateRows = "grid-template-rows" // Box Model Properties - Width = "width" - MaxWidth = "max-width" - Height = "height" - MaxHeight = "max-height" - Padding = "padding" - PaddingTop = "padding-top" - PaddingRight = "padding-right" - PaddingBottom = "padding-bottom" - PaddingLeft = "padding-left" - Margin = "margin" - MarginTop = "margin-top" - MarginRight = "margin-right" - MarginBottom = "margin-bottom" - MarginLeft = "margin-left" - Border = "border" - BorderColor = "border-color" - BorderStyle = "border-style" - BorderWidth = "border-width" - BorderRadius = "border-radius" - BoxShadow = "box-shadow" + Width = "width" + MinWidth = "min-width" + MaxWidth = "max-width" + Height = "height" + MinHeight = "min-height" + MaxHeight = "max-height" + Padding = "padding" + PaddingTop = "padding-top" + PaddingRight = "padding-right" + PaddingBottom = "padding-bottom" + PaddingLeft = "padding-left" + Margin = "margin" + MarginTop = "margin-top" + MarginRight = "margin-right" + MarginBottom = "margin-bottom" + MarginLeft = "margin-left" + Border = "border" + BorderTop = "border-top" + BorderRight = "border-right" + BorderBottom = "border-bottom" + BorderLeft = "border-left" + BorderColor = "border-color" + BorderTopColor = "borded-top-color" + BorderRightColor = "border-right-color" + BorderBottomColor = "border-bottom-color" + BorderLeftColor = "border-left-color" + BorderStyle = "border-style" + BorderTopStyle = "border-top-style" + BorderRightStyle = "border-right-style" + BorderBottomStyle = "border-bottom-style" + BorderLeftStyle = "border-left-style" + BorderWidth = "border-width" + BorderTopWidth = "border-top-width" + BorderRightWidth = "border-right-width" + BorderBottomWidth = "border-bottom-width" + BorderLeftWidth = "border-left-width" + BorderRadius = "border-radius" + BoxShadow = "box-shadow" // Fonts & Text Properties Color = "color" From a97bbb2ff04b51d0578a4f39c03d307dfc932764 Mon Sep 17 00:00:00 2001 From: Stefan Anevski <105498279+anevski-stefan@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:55:57 +0200 Subject: [PATCH 2/2] Refactor: Update type in styles.go Co-authored-by: Chase Fleming --- styles/styles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/styles.go b/styles/styles.go index 7c0e16a..adba77e 100644 --- a/styles/styles.go +++ b/styles/styles.go @@ -64,7 +64,7 @@ const ( BorderBottom = "border-bottom" BorderLeft = "border-left" BorderColor = "border-color" - BorderTopColor = "borded-top-color" + BorderTopColor = "border-top-color" BorderRightColor = "border-right-color" BorderBottomColor = "border-bottom-color" BorderLeftColor = "border-left-color"