Some props in @wordpress/components <Button> are deprecated
chihsuan opened this issue · 1 comments
chihsuan commented
Describe the bug
We should use the variant
prop instead for <Button>.
isPrimary, isSecondary, isTertiary and isLink props in Button have been deprecated. Use variant instead (#31713).
@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.
chihsuan commented
I found this is not compatible with WP 5.8 because @wordpress/components
in 5.8 is still old version.