woocommerce/woocommerce-admin

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

chihsuan opened this issue · 1 comments

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.

I found this is not compatible with WP 5.8 because @wordpress/components in 5.8 is still old version.