Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change order of style navigation items. Background is now underneath …
…color.

Shorten copy and wrap in Text to avoid widows.
  • Loading branch information
ramonjd committed Sep 16, 2024
commit 99960940fac2d1284ad3986af4c18b12861df4b3
18 changes: 9 additions & 9 deletions packages/edit-site/src/components/global-styles/root-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ function RootMenu() {
return (
<>
<ItemGroup>
{ hasBackgroundPanel && (
<NavigationButtonAsItem
icon={ background }
path="/background"
aria-label={ __( 'Background styles' ) }
>
{ __( 'Background' ) }
</NavigationButtonAsItem>
) }
{ hasTypographyPanel && (
<NavigationButtonAsItem
icon={ typography }
Expand All @@ -71,6 +62,15 @@ function RootMenu() {
{ __( 'Colors' ) }
</NavigationButtonAsItem>
) }
{ hasBackgroundPanel && (
<NavigationButtonAsItem
icon={ background }
path="/background"
aria-label={ __( 'Background styles' ) }
>
{ __( 'Background' ) }
</NavigationButtonAsItem>
) }
{ hasShadowPanel && (
<NavigationButtonAsItem
icon={ shadowIcon }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
import { __experimentalText as Text } from '@wordpress/components';

/**
* Internal dependencies
Expand All @@ -22,9 +23,11 @@ function ScreenBackground() {
<>
<ScreenHeader
title={ __( 'Background' ) }
description={ __(
'Edit styles that apply to the site’s background.'
) }
description={
<Text>
{ __( 'Set styles for the site’s background.' ) }
</Text>
}
/>
{ hasBackgroundPanel && <BackgroundPanel /> }
</>
Expand Down