Skip to content

Button: Officially deprecate isSmall prop #59733

@t-hamano

Description

@t-hamano

#53560 replaced all isSmall props with size="small" in the Gutenberg project. It should be possible to officially deprecate isSmall prop, as indicated by the following comment.

// TODO: Deprecate officially (add console warning and move to DeprecatedButtonProps).
/**
* Decreases the size of the button.
*
* Deprecated in favor of the `size` prop. If both props are defined, the `size` prop will take precedence.
*
* @deprecated Use the `'small'` value on the `size` prop instead.
*/
isSmall?: boolean;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions