From 16039c83738e0ee3c8fb078352ac6c52aea20ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8Curda?= Date: Tue, 31 Dec 2024 11:10:31 +0100 Subject: [PATCH] fixup! Feat(web): Introduce Box component #DS-1595 --- .../web/src/scss/components/Box/README.md | 2 +- .../web/src/scss/components/Box/index.html | 24 +++++++++---------- .../web/src/scss/settings/_utilities.scss | 10 ++++++++ 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/packages/web/src/scss/components/Box/README.md b/packages/web/src/scss/components/Box/README.md index 4b2410f575..af1b295e77 100644 --- a/packages/web/src/scss/components/Box/README.md +++ b/packages/web/src/scss/components/Box/README.md @@ -11,7 +11,7 @@ The Box component is a simple container around content or other components. You can define border width, color using utility classes `border-`, `border-`, and radius using utility class `rounded-`. ```html -
Without radius
+
Without radius
``` ## Padding diff --git a/packages/web/src/scss/components/Box/index.html b/packages/web/src/scss/components/Box/index.html index fd7a940455..25991149a7 100644 --- a/packages/web/src/scss/components/Box/index.html +++ b/packages/web/src/scss/components/Box/index.html @@ -19,10 +19,10 @@

With Custom Padding

For demo purposes the box is bordered
-
With custom padding
-
With custom vertical and horizontal padding
-
With custom padding for each direction
-
With responsive padding
+
With custom padding
+
With custom vertical and horizontal padding
+
With custom padding for each direction
+
With responsive padding
@@ -35,11 +35,11 @@

With Border

For demo purposes the box has custom padding
-
Without radius
-
With custom radius
-
With full radius
-
With thicker border
-
With focus color
+
Without radius
+
With custom radius
+
With full radius
+
With thicker border
+
With focus color
@@ -52,9 +52,9 @@

With Background Color

For demo purposes the box is bordered
-
Primary Background
-
Secondary Background
-
Tertiary Background
+
Primary Background
+
Secondary Background
+
Tertiary Background
diff --git a/packages/web/src/scss/settings/_utilities.scss b/packages/web/src/scss/settings/_utilities.scss index ac8afc9b04..0d384e755f 100644 --- a/packages/web/src/scss/settings/_utilities.scss +++ b/packages/web/src/scss/settings/_utilities.scss @@ -27,6 +27,16 @@ $utilities: ( class: rounded, values: tokens.$radii, ), + 'border-style': ( + responsive: false, + property: border-style, + class: border, + values: ( + solid: solid, + dashed: dashed, + dotted: dotted, + ), + ), 'border-width': ( responsive: false, property: border-width,