Skip to content

Commit

Permalink
Patterns: Update section heading levels
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jul 4, 2023
1 parent 1be8fa3 commit 4d988f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 1 addition & 7 deletions packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
DropdownMenu,
MenuGroup,
MenuItem,
__experimentalHeading as Heading,
__experimentalHStack as HStack,
__unstableCompositeItem as CompositeItem,
Tooltip,
Expand Down Expand Up @@ -155,12 +154,7 @@ export default function GridItem( { categoryId, composite, icon, item } ) {
icon={ itemIcon }
/>
) }
<Flex
as={ Heading }
level={ 5 }
gap={ 0 }
justify="left"
>
<Flex as="span" gap={ 0 } justify="left">
{ item.title }
{ item.type === PATTERNS && (
<Tooltip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export default function PatternsList( { categoryId, type } ) {
{ ! isResolving && !! syncedPatterns.length && (
<>
<VStack className="edit-site-patterns__section-header">
<Heading level={ 4 }>{ __( 'Synced' ) }</Heading>
<Heading as="h2" level={ 4 }>
{ __( 'Synced' ) }
</Heading>
<Text variant="muted" as="p">
{ __(
'Patterns that are kept in sync across your site'
Expand All @@ -94,7 +96,9 @@ export default function PatternsList( { categoryId, type } ) {
{ ! isResolving && !! unsyncedPatterns.length && (
<>
<VStack className="edit-site-patterns__section-header">
<Heading level={ 4 }>{ __( 'Standard' ) }</Heading>
<Heading as="h2" level={ 4 }>
{ __( 'Standard' ) }
</Heading>
<Text variant="muted" as="p">
{ __(
'Patterns that can be changed freely without affecting your site'
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
}

.edit-site-patterns__pattern-title {
color: $gray-600;
color: $gray-200;

.edit-site-patterns__pattern-icon {
border-radius: $grid-unit-05;
Expand Down

0 comments on commit 4d988f7

Please sign in to comment.