-
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
Box Control: Add Runtime Check & Conditional Types for presets
and presetKey
Props
#68385
Box Control: Add Runtime Check & Conditional Types for presets
and presetKey
Props
#68385
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Hi @mirka Thank you 🙇 |
Could you add a CHANGELOG entry? "Enhancements" sounds like a good section. |
Sharing a screencast with the latest changes. I have tested it in Storybook's Screen.Recording.2025-01-22.at.9.00.17.PM.mov |
@ciampo, the pipeline check suggests adding the entry to the Please let me know if any changes are needed or if this can be left as is.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning is correct, a new "Enhancements" section should be added under the 'Unreleased' top section. Also, thinking about it, I think that "Internal" could be a better section.
All together, you would need to apply the following changes:
diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md
index 6c475147985..6adec34a18b 100644
--- a/packages/components/CHANGELOG.md
+++ b/packages/components/CHANGELOG.md
@@ -2,6 +2,10 @@
## Unreleased
+### Internal
+
+- `BoxControl`: Add runtime check for presets and presetKey ([#68385](https://github.com/WordPress/gutenberg/pull/68385)).
+
## 29.2.0 (2025-01-15)
### Internal
@@ -23,7 +27,6 @@
- `Text`: Fix text contrast for dark mode ([#68349](https://github.com/WordPress/gutenberg/pull/68349)).
- `Heading`: Revert text contrast fix for dark mode with optimizeReadabilityFor ([#68472](https://github.com/WordPress/gutenberg/pull/68472)).
- `Text`: Revert text contrast fix for dark mode with optimizeReadabilityFor ([#68472](https://github.com/WordPress/gutenberg/pull/68472)).
-- `BoxControl`: Add runtime check for presets and presetKey ([#68385](https://github.com/WordPress/gutenberg/pull/68385)).
### Deprecations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 Thank you for your work and patience!
…`presetKey` Props (WordPress#68385) * feat: Improve developer experience for presets * fix: change Warning error message * fix: Enforce runtime check for presets, and presetKey * doc: Add log for runtime check * doc: Add in unreleased section --- Co-authored-by: im3dabasia <[email protected]> Co-authored-by: ciampo <[email protected]>
Follow up to this Comment: #67688 (comment)
What?
Why?
How?
Testing Instructions
Screencast
Screen.Recording.2025-01-03.at.1.18.21.PM.mov