Skip to content

Commit

Permalink
Patterns: Update section heading levels (#52273)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Jul 5, 2023
1 parent 7de4d65 commit e085f15
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

1 comment on commit e085f15

@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 e085f15.
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/5459557256
📝 Reported issues:

Please sign in to comment.