Skip to content

Commit

Permalink
Add a title to the category delete flow and increase line height
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 6, 2024
1 parent b6db512 commit e5b5f91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/utils/config-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default Object.assign( {}, CONTROL_PROPS, TOGGLE_GROUP_CONTROL_PROPS, {
fontSizeMobile: '15px',
fontSizeSmall: 'calc(0.92 * 13px)',
fontSizeXSmall: 'calc(0.75 * 13px)',
fontLineHeightBase: '1.2',
fontLineHeightBase: '1.4',
fontWeight: 'normal',
fontWeightHeading: '600',
gridBase: '4px',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ export default function DeleteCategoryMenuItem( { category, onClose } ) {
onCancel={ () => setIsModalOpen( false ) }
confirmButtonText={ __( 'Delete' ) }
className="edit-site-patterns__delete-modal"
title={ sprintf(
// translators: %s: The pattern category's name.
__( 'Delete the category "%s"?' ),
decodeEntities( category.label )
) }
size="medium"
__experimentalHideHeader={ false }
>
{ sprintf(
// translators: %s: The pattern category's name.
Expand Down

0 comments on commit e5b5f91

Please sign in to comment.