-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button Component - remove isLarge prop #23239
Conversation
…ate the component docs to remove its reference
I see the Travis build failed on 2 things, one was the isLarge test - which I've gone ahead and removed... Do I need to do a new pull request? |
Congratulations on your first merged pull request, @rmorse! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts: https://profiles.wordpress.org/me/profile/edit/ And if you don't have a WordPress.org account, you can create one on this page: https://login.wordpress.org/register Kudos! |
The isLarge prop has been removed from Gutenberg Button component. Leaving the prop in place results in console error so should be removed. WordPress/gutenberg#23239
Prevents a console error in WP 5.5 caused by the attribute being removed in 5.5. See: - Removal: WordPress/gutenberg#23239 - Note about isLarge having no effect in the first place: WordPress/gutenberg#16541 (comment)
... and class name + update the component docs to remove its reference - to finish the work done in - #16541
Description
The Button component was still accepting an
isLarge
prop, and adding anis-large
class to the button when it should not be - #16541How has this been tested?
We're removing a prop + class - I've test by passing
isLarge
as a prop and observing that the html class is no longer added.This change should not affect other components but I have observed some tests using the isLarge prop.
Types of changes
Prevents the use of isLarge to add a class to a button - removing as soon as possible will prevent adoption of this feature.
Checklist: