Skip to content

Commit 1954e7b

Browse files
committed
Update Template Part Edit button to use lowercase titles
- Convert template part titles to lowercase for consistent sentence case - Button now shows 'Edit header' instead of 'Edit Header' - Maintains fallback to 'Edit template part' when no title is available - Improves visual consistency with other button labels
1 parent 5ef82b6 commit 1954e7b

File tree

1 file changed

+3
-1
lines changed
  • packages/block-library/src/template-part/edit

1 file changed

+3
-1
lines changed

packages/block-library/src/template-part/edit/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ export default function TemplatePartEdit( {
295295
? sprintf(
296296
/* translators: %s: template part title or fallback text */
297297
__( 'Edit %s' ),
298-
title || __( 'template part' )
298+
(
299+
title || __( 'template part' )
300+
).toLowerCase()
299301
)
300302
: __( 'Edit' ) }
301303
</ToolbarButton>

0 commit comments

Comments
 (0)