Skip to content

Commit

Permalink
Better align actions buttons + title in site editor details panel (#4…
Browse files Browse the repository at this point in the history
…9487)

* Update the template title in the details panel

* Do not truncate

Co-Authored-By: Joen A. <1204802+jasmussen@users.noreply.github.com>
Co-Authored-By: James Koster <846565+jameskoster@users.noreply.github.com>

* Revert title size

Co-Authored-By: Joen A. <1204802+jasmussen@users.noreply.github.com>
Co-Authored-By: James Koster <846565+jameskoster@users.noreply.github.com>

* 'grid unit'

---------

Co-authored-by: Joen A. <1204802+jasmussen@users.noreply.github.com>
Co-authored-by: James Koster <846565+jameskoster@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 3, 2023
1 parent a7e87a2 commit 641949a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
__experimentalHStack as HStack,
__experimentalVStack as VStack,
__experimentalNavigatorToParentButton as NavigatorToParentButton,
__experimentalHeading as Heading,
} from '@wordpress/components';
import { isRTL, __ } from '@wordpress/i18n';
import { chevronRight, chevronLeft } from '@wordpress/icons';
Expand Down Expand Up @@ -35,7 +36,7 @@ export default function SidebarNavigationScreen( {
<VStack spacing={ 2 }>
<HStack
spacing={ 4 }
justify="flex-start"
alignment="flex-start"
className="edit-site-sidebar-navigation-screen__title-icon"
>
{ ! isRoot ? (
Expand All @@ -52,9 +53,14 @@ export default function SidebarNavigationScreen( {
label={ __( 'Dashboard' ) }
/>
) }
<h2 className="edit-site-sidebar-navigation-screen__title">
<Heading
className="edit-site-sidebar-navigation-screen__title"
color={ 'white' }
level={ 2 }
size={ 20 }
>
{ title }
</h2>
</Heading>
{ actions }
</HStack>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@
}

.edit-site-sidebar-navigation-screen__title {
font-size: calc(1.56 * 13px);
line-height: normal;
font-weight: 500;
flex-grow: 1;
color: $white;
margin: 0;
padding: $grid-unit-15 * 0.5 0 0 0;
}

.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container {
Expand Down

1 comment on commit 641949a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 641949a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4596260826
📝 Reported issues:

Please sign in to comment.