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: Replace deprecated isSmall property with size="small" property #53560

Closed
t-hamano opened this issue Aug 11, 2023 · 5 comments · Fixed by #59304 or #59302
Closed

Button: Replace deprecated isSmall property with size="small" property #53560

t-hamano opened this issue Aug 11, 2023 · 5 comments · Fixed by #59304 or #59302
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Components /packages/components [Status] In Progress Tracking issues with work in progress [Type] Code Quality Issues or PRs that relate to code quality

Comments

@t-hamano
Copy link
Contributor

Related to #53472

The deprecated isSmall property is being used in the Button component and in the component that wraps the Button component.

I believe that the isSmall property should be replaced with size="prop" to officially deprecate it, as mentioned in this comment.

button-deprecated

@t-hamano t-hamano added the [Package] Components /packages/components label Aug 11, 2023
@mirka mirka added Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Code Quality Issues or PRs that relate to code quality labels Aug 11, 2023
ddryo added a commit to ddryo/gutenberg that referenced this issue Aug 12, 2023
tkc49 added a commit to tkc49/gutenberg that referenced this issue Oct 20, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Oct 20, 2023
tkc49 added a commit to tkc49/gutenberg that referenced this issue Oct 20, 2023
@skorasaurus
Copy link
Member

Note isSmall is used in several other places and there's a PR to fix it at #53599

@mirka mirka linked a pull request Dec 15, 2023 that will close this issue
@mirka mirka removed a link to a pull request Dec 18, 2023
mirka added a commit that referenced this issue Dec 18, 2023
artemiomorales pushed a commit that referenced this issue Jan 4, 2024
inc2734 added a commit to inc2734/gutenberg that referenced this issue Feb 23, 2024
inc2734 added a commit to inc2734/gutenberg that referenced this issue Feb 23, 2024
fabiankaegy added a commit that referenced this issue Feb 23, 2024
Co-authored-by: inc2734 <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: skorasaurus<[email protected]>
@fabiankaegy
Copy link
Member

I can see there are more instances still. So reopening

@jaclync
Copy link
Contributor

jaclync commented Mar 7, 2024

I'm taking on this one.

@jaclync
Copy link
Contributor

jaclync commented Mar 7, 2024

For future contributors, the remaining components to replace that I found:

  • SidesDropdown
  • PaletteEdit
  • ToolsPanelHeader

@t-hamano t-hamano linked a pull request Mar 7, 2024 that will close this issue
@t-hamano
Copy link
Contributor Author

t-hamano commented Mar 7, 2024

Once #59302 is merged, all isSmall props will be replaced and this issue can be closed. Thank you to everyone who worked on this issue!

t-hamano added a commit that referenced this issue Mar 9, 2024
Co-authored-by: inc2734 <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: skorasaurus <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: jaclync <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Components /packages/components [Status] In Progress Tracking issues with work in progress [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
5 participants