This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Replace deprecated button props isPrimary
, isSecondary
, isTertiary
and isLink
#11855
Labels
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
team: Kirigami & Origami
type: cooldown
Things that are queued for a cooldown period (assists with planning).
type: good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
type: technical debt
This issue/PR represents/solves the technical debt of the project.
With Gutenberg 14.2.0, the button props
isPrimary
,isSecondary
,isTertiary
andisLink
have been deprecated in favour ofvariant
. See https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md#1420-2021-07-21 and WordPress/gutenberg#31713.Currently, we're still using all four deprecated button props:
isPrimary
→ should be replaced withvariant="primary"
isSecondary
→ should be replaced withvariant="secondary"
isTertiary
→ should be replaced withvariant="tertiary"
isLink
→ should be replaced withvariant="link"
Reference:
The text was updated successfully, but these errors were encountered: