Skip to content

NumberControl: Deprecate 36px default size - #66730

Merged
mirka merged 12 commits into
WordPress:trunkfrom
hbhalodia:fix/issue-65751-deprecation-NumberControl
Dec 2, 2024
Merged

mirka merged 12 commits into
WordPress:trunkfrom
hbhalodia:fix/issue-65751-deprecation-NumberControl

Conversation

@hbhalodia

Copy link
Copy Markdown
Contributor

Part of #65751

What?

Deprecate the 36px default size on NumberControl.

Testing Instructions

  • Unit tests pass
  • Storybook stories should not log console warnings
  • All code snippets in documentation (JSDoc, Storybook, README) should have the __next40pxDefaultSize prop enabled

@hbhalodia
hbhalodia requested a review from ajitbohra as a code owner November 5, 2024 03:38
@github-actions

github-actions Bot commented Nov 5, 2024 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@hbhalodia hbhalodia mentioned this pull request Nov 5, 2024
24 of 25 tasks
@hbhalodia
hbhalodia requested a review from mirka November 28, 2024 06:38
@hbhalodia

Copy link
Copy Markdown
Contributor Author

Hi @mirka, I have updated the PR with suggestions and feedbacks on the previous PRs, Can you please have a review for the same.

Also, I have looked in codebase regarding NumberControl usage in components, I have updated wherever I could find them. Let me know if there is any missing, I can update that as well.

Thank You 🙇.

@hbhalodia
hbhalodia requested a review from ellatrix as a code owner November 29, 2024 05:57
@mirka mirka added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components Needs Dev Note Requires a developer note for a major WordPress release cycle labels Nov 29, 2024
# Conflicts:
#	packages/components/CHANGELOG.md

@mirka mirka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thank you for applying all the previous tips!

@hbhalodia
hbhalodia requested a review from mirka December 2, 2024 05:25
@hbhalodia

Copy link
Copy Markdown
Contributor Author

Hi @mirka, All the issues have been addressed.

Thank You,

@mirka mirka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@mirka
mirka merged commit 65fa4f3 into WordPress:trunk Dec 2, 2024
@github-actions github-actions Bot added this to the Gutenberg 19.9 milestone Dec 2, 2024
im3dabasia pushed a commit to im3dabasia/gutenberg that referenced this pull request Dec 4, 2024
* Add the deprecation for 36px default size to number control

* Add the changelog for the deprecation

* Update unit test and supress warning for 40px default size warning from child component

* Add the deperection changelog to unreleased section and updated the component to use __next40pxDefaultSize for NumberControl

* Refactor the test for NumberControl component to reduce changes

* Update box control files to use supress warning prop before default 40px prop

* Supress the console warning for deprecation message from child component

* Addressed the feedbacks on the PR and updated the component based on that

---------

Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
michalczaplinski pushed a commit that referenced this pull request Dec 5, 2024
* Add the deprecation for 36px default size to number control

* Add the changelog for the deprecation

* Update unit test and supress warning for 40px default size warning from child component

* Add the deperection changelog to unreleased section and updated the component to use __next40pxDefaultSize for NumberControl

* Refactor the test for NumberControl component to reduce changes

* Update box control files to use supress warning prop before default 40px prop

* Supress the console warning for deprecation message from child component

* Addressed the feedbacks on the PR and updated the component based on that

---------

Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
@Mamaduka Mamaduka mentioned this pull request Mar 12, 2025
45 of 49 tasks
@hbhalodia
hbhalodia deleted the fix/issue-65751-deprecation-NumberControl branch November 17, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Dev Note Requires a developer note for a major WordPress release cycle [Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants