fix(ui): remove non-existent large size from Button types
Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user