Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak Latest Posts block PanelBody labels #49079

Merged
merged 2 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
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