Skip to content

Commit

Permalink
DateFormatPicker: fix styles & spacing (WordPress#68079)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent 287d653 commit 62de8af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ export default function DateFormatPicker( {
onChange,
} ) {
return (
<fieldset className="block-editor-date-format-picker">
<VStack
as="fieldset"
spacing={ 4 }
className="block-editor-date-format-picker"
>
<VisuallyHidden as="legend">{ __( 'Date format' ) }</VisuallyHidden>
<ToggleControl
__nextHasNoMarginBottom
Expand All @@ -57,7 +61,7 @@ export default function DateFormatPicker( {
{ format && (
<NonDefaultControls format={ format } onChange={ onChange } />
) }
</fieldset>
</VStack>
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.block-editor-date-format-picker {
margin-bottom: $grid-unit-20;
margin: 0 0 $grid-unit-20;
padding: 0;
border: none;
}

.block-editor-date-format-picker__custom-format-select-control__custom-option {
Expand Down

0 comments on commit 62de8af

Please sign in to comment.