Skip to content

Commit e42b49a

Browse files
Blankslate: remove small size
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 9483345 commit e42b49a

12 files changed

Lines changed: 58 additions & 74 deletions
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@primer/react': patch
2+
'@primer/react': major
33
---
44

5-
Blankslate: Make compact sizing and default-sized primary actions standard. The `small` size remains supported as an alias for `medium`.
5+
Blankslate: Make compact sizing and default-sized primary actions standard. Remove the `small` size; use `medium` instead.

‎e2e/components/Blankslate.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const stories: Array<{title: string; id: string; viewports?: Array<keyof typeof
4343
]
4444

4545
const scenarios = matrix({
46-
size: ['small', 'medium', 'large'],
46+
size: ['medium', 'large'],
4747
spacious: [true, false],
4848
border: [true, false],
4949
})

‎packages/react/src/Blankslate/Blankslate.docs.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
},
5555
{
5656
"name": "size",
57-
"type": "'small' | 'medium' | 'large'",
58-
"description": "The size of the component. Small is an alias for the compact medium size.",
57+
"type": "'medium' | 'large'",
58+
"description": "The size of the component",
5959
"defaultValue": "'medium'"
6060
}
6161
],

‎packages/react/src/Blankslate/Blankslate.features.stories.tsx‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,6 @@ export const Spacious = () => (
106106
</Blankslate>
107107
)
108108

109-
export const SizeSmall = () => (
110-
<Blankslate border size="small">
111-
<Blankslate.Visual>
112-
<BookIcon size="medium" />
113-
</Blankslate.Visual>
114-
<Blankslate.Heading>Blankslate heading</Blankslate.Heading>
115-
<Blankslate.Description>Use it to provide information when no dynamic content exists.</Blankslate.Description>
116-
<Blankslate.PrimaryAction href="#">Primary action</Blankslate.PrimaryAction>
117-
<Blankslate.SecondaryAction href="#">Secondary action</Blankslate.SecondaryAction>
118-
</Blankslate>
119-
)
120-
121109
export const SizeLarge = () => (
122110
<Blankslate size="large">
123111
<Blankslate.Visual>

‎packages/react/src/Blankslate/Blankslate.figma.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const props = {
66
item: figma.children('leadingVisual'),
77
}),
88
size: figma.enum('size', {
9-
small: 'small',
109
medium: 'medium',
1110
large: 'large',
1211
}),

‎packages/react/src/Blankslate/Blankslate.stories.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Playground.args = {
5959
Playground.argTypes = {
6060
size: {
6161
controls: {
62-
options: ['small', 'medium', 'large'],
62+
options: ['medium', 'large'],
6363
},
6464
},
6565
}

0 commit comments

Comments
 (0)