fix(ui): remove non-existent large size from Button types

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-01-27 17:24:48 +01:00
parent 2a57064226
commit 058ffd913f
3 changed files with 16 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
---
'@backstage/ui': minor
---
**BREAKING**: Removed `large` size variant from Button component as it was never implemented.
**Migration:**
```diff
- <Button size="large">Click me</Button>
+ <Button size="medium">Click me</Button>
```
**Affected components:** Button
+1 -1
View File
@@ -443,7 +443,7 @@ export interface ButtonLinkProps
// @public (undocumented)
export type ButtonOwnProps = LeafSurfaceProps & {
size?: Responsive<'small' | 'medium' | 'large'>;
size?: Responsive<'small' | 'medium'>;
variant?: Responsive<'primary' | 'secondary' | 'tertiary'>;
iconStart?: ReactElement;
iconEnd?: ReactElement;
+1 -1
View File
@@ -20,7 +20,7 @@ import type { LeafSurfaceProps, Responsive } from '../../types';
/** @public */
export type ButtonOwnProps = LeafSurfaceProps & {
size?: Responsive<'small' | 'medium' | 'large'>;
size?: Responsive<'small' | 'medium'>;
variant?: Responsive<'primary' | 'secondary' | 'tertiary'>;
iconStart?: ReactElement;
iconEnd?: ReactElement;