diff --git a/ui/components/ui/box/README.mdx b/ui/components/ui/box/README.mdx
index ff443c1f6..23b1a76fc 100644
--- a/ui/components/ui/box/README.mdx
+++ b/ui/components/ui/box/README.mdx
@@ -209,6 +209,7 @@ import Box from '../ui/box';
BORDER_RADIUS.LG 8px
BORDER_RADIUS.XL 12px
BORDER_RADIUS.PILL 9999px
+BORDER_RADIUS.FULL 50%
```
### Responsive Props
diff --git a/ui/components/ui/box/box.scss b/ui/components/ui/box/box.scss
index 63f9fb9fa..b29da6bdb 100644
--- a/ui/components/ui/box/box.scss
+++ b/ui/components/ui/box/box.scss
@@ -157,6 +157,10 @@ $attributesToApplyExtraProperties: margin;
border-radius: 9999px;
}
+ &--rounded-full {
+ border-radius: 50%;
+ }
+
// breakpoint classes
@each $breakpoint, $min-width in $screen-sizes-map {
@media screen and (min-width: $min-width) {
diff --git a/ui/components/ui/box/box.stories.js b/ui/components/ui/box/box.stories.js
index 6d63f186e..cd9712269 100644
--- a/ui/components/ui/box/box.stories.js
+++ b/ui/components/ui/box/box.stories.js
@@ -482,75 +482,90 @@ export const BorderColor = () => {
export const BorderRadius = () => {
return (
-
-
- BORDER_RADIUS.NONE 0px
-
-
- BORDER_RADIUS.XS 2px
-
-
- BORDER_RADIUS.SM 4px
-
-
- BORDER_RADIUS.MD 6px
-
-
- BORDER_RADIUS.LG 8px
-
+ <>
- BORDER_RADIUS.XL 12px
+
+ BORDER_RADIUS.NONE 0px
+
+
+ BORDER_RADIUS.XS 2px
+
+
+ BORDER_RADIUS.SM 4px
+
+
+ BORDER_RADIUS.MD 6px
+
+
+ BORDER_RADIUS.LG 8px
+
+
+ BORDER_RADIUS.XL 12px
+
+
+ BORDER_RADIUS.PILL 9999px
+
- BORDER_RADIUS.PILL 9999px
+ BORDER_RADIUS.FULL 50%
-
+ >
);
};
diff --git a/ui/components/ui/box/box.test.js b/ui/components/ui/box/box.test.js
index 8e8534589..1f8a0beac 100644
--- a/ui/components/ui/box/box.test.js
+++ b/ui/components/ui/box/box.test.js
@@ -287,6 +287,7 @@ describe('Box', () => {
border radius lg
border radius xl
border radius pill
+ border radius full
border radius none
>,
);
@@ -297,6 +298,7 @@ describe('Box', () => {
expect(getByText('border radius lg')).toHaveClass('box--rounded-lg');
expect(getByText('border radius xl')).toHaveClass('box--rounded-xl');
expect(getByText('border radius pill')).toHaveClass('box--rounded-pill');
+ expect(getByText('border radius full')).toHaveClass('box--rounded-full');
expect(getByText('border radius none')).toHaveClass('box--rounded-none');
});
it('should render the Box with the responsive borderRadius classes', () => {
@@ -317,6 +319,7 @@ describe('Box', () => {
BORDER_RADIUS.XL,
BORDER_RADIUS.PILL,
BORDER_RADIUS.NONE,
+ BORDER_RADIUS.FULL,
]}
>
Border radius set 2
@@ -341,6 +344,9 @@ describe('Box', () => {
expect(getByText('Border radius set 2')).toHaveClass(
'box--md:rounded-none',
);
+ expect(getByText('Border radius set 2')).toHaveClass(
+ 'box--lg:rounded-full',
+ );
});
});
describe('display, gap, flexDirection, flexWrap, alignItems, justifyContent', () => {
diff --git a/ui/helpers/constants/design-system.js b/ui/helpers/constants/design-system.js
index 7c8ddb18e..4bb1fd0de 100644
--- a/ui/helpers/constants/design-system.js
+++ b/ui/helpers/constants/design-system.js
@@ -193,6 +193,7 @@ export const BORDER_RADIUS = {
XL: SIZES.XL,
NONE,
PILL: 'pill',
+ FULL: 'full',
};
const FLEX_END = 'flex-end';