In our transition process to the new 40px default sizes, we are now ready to officially start the deprecation period by logging console warnings.
- [ ] Log deprecation warning
- [ ] Update unit tests
- [ ] Update Storybook (including all stories where the component is used)
- [ ] Update code snippets (Storybook, JSDoc, README)
- [ ] Changelog
- [ ] Add Dev Note tag
If used inside another wp-components component and the parent component is dictating the child component's size dynamically, the parent component is responsible for logging the deprecation warning. To suppress the redundant warning from the child component, add the __shouldNotWarnDeprecated36pxSize prop as shown here for the ToggleGroupControl used inside FontSizePicker.
- [ ] Unit tests must all be passing
- [ ] If used in a Storybook story for another component, it must have the prop so it isn't logging console warnings
Part of #46741
In our transition process to the new 40px default sizes, we are now ready to officially start the deprecation period by logging console warnings.
List of components
Block Editor
Procedure
If used inside another wp-components component and the parent component is dictating the child component's size dynamically, the parent component is responsible for logging the deprecation warning. To suppress the redundant warning from the child component, add the
__shouldNotWarnDeprecated36pxSizeprop as shown here for the ToggleGroupControl used inside FontSizePicker.Success criteria