Skip to content

Commit

Permalink
Tweak Latest Posts block PanelBody labels (#49079)
Browse files Browse the repository at this point in the history
* Update labels, edit

* Update labels, edit.native
  • Loading branch information
richtabor authored Mar 15, 2023
1 parent 170076a commit 822b035
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
const hasPosts = !! latestPosts?.length;
const inspectorControls = (
<InspectorControls>
<PanelBody title={ __( 'Post content settings' ) }>
<PanelBody title={ __( 'Post content' ) }>
<ToggleControl
label={ __( 'Post content' ) }
checked={ displayPostContent }
Expand Down Expand Up @@ -240,7 +240,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
) }
</PanelBody>

<PanelBody title={ __( 'Post meta settings' ) }>
<PanelBody title={ __( 'Post meta' ) }>
<ToggleControl
__nextHasNoMarginBottom
label={ __( 'Display author name' ) }
Expand All @@ -259,7 +259,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
/>
</PanelBody>

<PanelBody title={ __( 'Featured image settings' ) }>
<PanelBody title={ __( 'Featured image' ) }>
<ToggleControl
__nextHasNoMarginBottom
label={ __( 'Display featured image' ) }
Expand Down
6 changes: 3 additions & 3 deletions packages/block-library/src/latest-posts/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class LatestPostsEdit extends Component {

return (
<InspectorControls>
<PanelBody title={ __( 'Post content settings' ) }>
<PanelBody title={ __( 'Post content' ) }>
<ToggleControl
label={ __( 'Show post content' ) }
checked={ displayPostContent }
Expand All @@ -184,15 +184,15 @@ class LatestPostsEdit extends Component {
) }
</PanelBody>

<PanelBody title={ __( 'Post meta settings' ) }>
<PanelBody title={ __( 'Post meta' ) }>
<ToggleControl
label={ __( 'Display post date' ) }
checked={ displayPostDate }
onChange={ this.onSetDisplayPostDate }
/>
</PanelBody>

<PanelBody title={ __( 'Featured image settings' ) }>
<PanelBody title={ __( 'Featured image' ) }>
<ToggleControl
label={ __( 'Display featured image' ) }
checked={ displayFeaturedImage }
Expand Down

1 comment on commit 822b035

@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 822b035.
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/4423553357
📝 Reported issues:

Please sign in to comment.