-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Labels
[Feature] UI ComponentsImpacts or related to the UI component systemImpacts or related to the UI component system[Package] Components/packages/components/packages/components[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
In WordPress 6.2, it seems like DateTimePicker comes with broken layout when displayed in editor sidebar.
Step-by-step reproduction instructions
- Import components and controls:
import { InspectorControls } from '@wordpress/block-editor';
import { DateTimePicker, PanelBody, PanelRow } from '@wordpress/components';
- Add components to
edit.jsin block:
<InspectorControls>
<PanelBody title="Date">
<PanelRow>
<DateTimePicker
currentDate={ dateTime }
onChange={ updateDate }
is12Hour={ true }
/>
</PanelRow>
</PanelBody>
</InspectorControls>
Screenshots, screen recording, code snippet
Environment info
- WordPress: 6.2
- Chrome, Firefox, Safari
- macOS
Also, tried with Gutenberg and without it, but result remains the same.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Feature] UI ComponentsImpacts or related to the UI component systemImpacts or related to the UI component system[Package] Components/packages/components/packages/components[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
