Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Some props in @wordpress/components <Button> are deprecated #8313

@chihsuan

Description

@chihsuan

Describe the bug

We should use the variant prop instead for <Button>.

https://github.com/WordPress/gutenberg/blob/81e8e0f7c999df3cc43ef97cb2913779c0190eff/packages/components/CHANGELOG.md#deprecation-1

isPrimary, isSecondary, isTertiary and isLink props in Button have been deprecated. Use variant instead (#31713).

#8305 (review)

@wordpress/components deprecated some props (isPrimary, isSecondary, isTertiary, isLink) in <Button> and we use those props, so we should probably make a separate issue to fix them before they completely remove support.

Metadata

Metadata

Assignees

Labels

type: refactorThe issue/PR is related to refactoring.type: taskThe issue is an internally driven task (e.g. from another A8c team).type: technical debtThis issue/PR represents/solves the technical debt of the project.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions