diff --git a/.changeset/tiny-actors-eat.md b/.changeset/tiny-actors-eat.md new file mode 100644 index 00000000..9c02576e --- /dev/null +++ b/.changeset/tiny-actors-eat.md @@ -0,0 +1,5 @@ +--- +'@primer/css': patch +--- + +Add responsive `border-radius` story diff --git a/docs/src/stories/utilities/Border.stories.jsx b/docs/src/stories/utilities/Border.stories.jsx index fd3a1f8e..68f5e762 100644 --- a/docs/src/stories/utilities/Border.stories.jsx +++ b/docs/src/stories/utilities/Border.stories.jsx @@ -2,62 +2,33 @@ export default { title: 'Utilities/Border' } -export const Default = ({}) => ( - - .border - -) +export const Default = ({}) => .border export const Direction = ({}) => (
-
- .border-left -
-
- .border-top -
-
- .border-bottom -
-
- .border-right -
-
- .border-x -
-
- .border-y -
+
.border-left
+
.border-top
+
.border-bottom
+
.border-right
+
.border-x
+
.border-y
) -export const Hide = ({}) => ( - - .border-top-0 - -) +export const Hide = ({}) => .border-top-0 -export const Style = ({}) => ( - - .border-dashed - -) +export const Style = ({}) => .border-dashed export const Rounded = ({}) => (
-
- .rounded-0 -
-
- .rounded-1 -
-
- .rounded-2 -
-
- .rounded-3 -
-
+
.rounded-0
+
.rounded-1
+
.rounded-2
+
.rounded-3
+
.circle
@@ -65,23 +36,30 @@ export const Rounded = ({}) => ( export const RoundedDirection = ({}) => (
-
- .rounded-top-2 -
-
- .rounded-right-2 -
-
- .rounded-bottom-2 -
-
- .rounded-left-2 -
+
.rounded-top-2
+
.rounded-right-2
+
.rounded-bottom-2
+
.rounded-left-2
+
+) + +export const RoundedResponsive = ({}) => ( +
+
.border-left
+
.rounded-sm-1
+
.rounded-md-2
+
.rounded-lg-3
) export const Responsive = ({}) => ( -
+
.border-left
.border-sm-top
.border-md-right