Skip to content

Commit de918f7

Browse files
yogeshbhutkaryogeshbhutkart-hamano
authored
Global Styles: Implement uniform header layout (#70464)
Co-authored-by: yogeshbhutkar <[email protected]> Co-authored-by: t-hamano <[email protected]>
1 parent 64923f6 commit de918f7

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

packages/edit-site/src/components/global-styles/font-sizes/font-sizes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function FontSizeGroup( {
6969
/>
7070
) }
7171
<VStack spacing={ 4 }>
72-
<HStack justify="space-between" align="center">
72+
<HStack>
7373
<Subtitle level={ 3 }>{ label }</Subtitle>
74-
<FlexItem>
74+
<FlexItem className="edit-site-global-styles__typography-panel__options-container">
7575
{ origin === 'custom' && (
7676
<Button
7777
label={ __( 'Add font size' ) }

packages/edit-site/src/components/global-styles/shadows-edit-panel.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,7 @@ function ShadowEditor( { shadow, onChange } ) {
327327
<>
328328
<VStack spacing={ 2 }>
329329
<HStack justify="space-between">
330-
<Flex
331-
align="center"
332-
className="edit-site-global-styles__shadows-panel__title"
333-
>
334-
<Subtitle level={ 3 }>{ __( 'Shadows' ) }</Subtitle>
335-
</Flex>
330+
<Subtitle level={ 3 }>{ __( 'Shadows' ) }</Subtitle>
336331
<FlexItem className="edit-site-global-styles__shadows-panel__options-container">
337332
<Button
338333
size="small"

packages/edit-site/src/components/global-styles/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
flex-shrink: 0;
105105
}
106106

107-
.edit-site-global-styles__shadows-panel__options-container {
107+
.edit-site-global-styles__shadows-panel__options-container,
108+
.edit-site-global-styles__typography-panel__options-container {
108109
height: $grid-unit * 3;
109110
}
110111

0 commit comments

Comments
 (0)