You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I would like to leave the issue open as I believe this is a temporary fix and there are more reasonable approaches at the component level.
Architecturally, the margin-bottom: 24px is a problem inflicted by @wordpress/block-editor itself, so we will not be addressing it at the @wordpress/components level.
Similar to your suggestion, we are starting to counteract it in certain components like so:
Activity
t-hamano commentedon Apr 2, 2023
@dashkevych
Thank you for the report. I was able to reproduce it.
Sample code to add DateTimePicker to the block sidebar
I think it is due to the fact that the margin style in the block inspector is applied inside the
DateTimePickercomponent:One solution would be to apply a style that resets the margin, as shown below:
However, I would like to leave the issue open as I believe this is a temporary fix and there are more reasonable approaches at the component level.
mirka commentedon Apr 12, 2023
Architecturally, the
margin-bottom: 24pxis a problem inflicted by@wordpress/block-editoritself, so we will not be addressing it at the@wordpress/componentslevel.Similar to your suggestion, we are starting to counteract it in certain components like so:
gutenberg/packages/block-editor/src/components/block-inspector/style.scss
Lines 21 to 27 in 405f52a
☝️ Feel free to add DateTimePicker and other affected components to this!
t-hamano commentedon Apr 13, 2023
@mirka
Thank you for the advice! I summarized this issue in #49796.
t-hamano commentedon Jun 2, 2025
Let's close this issue as part of #49796