Skip to content
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

Merged
merged 2 commits into from
Jun 18, 2020
Merged

Button Component - remove isLarge prop #23239

merged 2 commits into from
Jun 18, 2020

Conversation

rmorse
Copy link
Contributor

@rmorse rmorse commented Jun 17, 2020

... 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 an is-large class to the button when it should not be - #16541

How 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:

  • [x ] My code is tested.
  • [x ] My code follows the WordPress code style.
  • [x ] My code follows the accessibility standards.
  • My code has proper inline documentation.
  • [ x ] I've *removed developer documentation.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

…ate the component docs to remove its reference
@ZebulanStanphill ZebulanStanphill added [Feature] UI Components Impacts or related to the UI component system [Type] Code Quality Issues or PRs that relate to code quality labels Jun 17, 2020
@rmorse
Copy link
Contributor Author

rmorse commented Jun 17, 2020

I see the Travis build failed on 2 things, one was the isLarge test - which I've gone ahead and removed...
ffde2cc

Do I need to do a new pull request?

@youknowriad youknowriad merged commit 7733aea into WordPress:master Jun 18, 2020
@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jun 18, 2020
@github-actions
Copy link

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!

@github-actions github-actions bot added this to the Gutenberg 8.4 milestone Jun 18, 2020
@rmorse rmorse deleted the update/button branch June 18, 2020 13:58
This was referenced Jun 24, 2020
aaronrobertshaw added a commit to Automattic/jetpack that referenced this pull request Aug 3, 2020
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
nickcernis added a commit to studiopress/genesis-custom-blocks that referenced this pull request Aug 7, 2020
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] UI Components Impacts or related to the UI component system First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants