Skip to content

Commit

Permalink
Text case: Change "No Title" to "No title". (#64184)
Browse files Browse the repository at this point in the history
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Aug 2, 2024
1 parent 9770494 commit 41ee29e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/post-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function PostTitleEdit( {
titleElement = userCanEdit ? (
<PlainText
tagName={ TagName }
placeholder={ __( 'No Title' ) }
placeholder={ __( 'No title' ) }
value={ rawTitle }
onChange={ setTitle }
__experimentalVersion={ 2 }
Expand All @@ -96,7 +96,7 @@ export default function PostTitleEdit( {
href={ link }
target={ linkTarget }
rel={ rel }
placeholder={ ! rawTitle.length ? __( 'No Title' ) : null }
placeholder={ ! rawTitle.length ? __( 'No title' ) : null }
value={ rawTitle }
onChange={ setTitle }
__experimentalVersion={ 2 }
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/blog-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function BlogTitle() {
onClose={ onClose }
/>
<InputControl
placeholder={ __( 'No Title' ) }
placeholder={ __( 'No title' ) }
size="__unstable-large"
value={ postsPageTitle }
onChange={ debounce( setPostsPageTitle, 300 ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/document-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function DocumentBar( props ) {
>
{ title
? decodeEntities( title )
: __( 'No Title' ) }
: __( 'No title' ) }
</Text>
</motion.div>
<span className="editor-document-bar__shortcut">
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-card-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function PostCardPanel( { actions } ) {
as="h2"
lineHeight="20px"
>
{ title ? decodeEntities( title ) : __( 'No Title' ) }
{ title ? decodeEntities( title ) : __( 'No title' ) }
{ isFrontPage && (
<span className="editor-post-card-panel__title-badge">
{ __( 'Homepage' ) }
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/sidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ test.describe( 'Sidebar', () => {
.getByRole( 'heading', { level: 2 } );

await expect( documentSettingsPanels ).toHaveText( [
'No Title',
'No title',
'Categories',
'Tags',
] );
Expand Down

0 comments on commit 41ee29e

Please sign in to comment.