diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index bec6d42bfbfd38..53d046a5095ba6 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -657,7 +657,7 @@ export default function Image( { } } > { _x( - 'Alt', + 'Alternative text', 'Alternative text for an image. Block toolbar label, a low character count is preferred.' ) } @@ -697,54 +697,58 @@ export default function Image( { /> ) } /> - ( - { - if ( - ! isOpen && - event.keyCode === DOWN - ) { - event.preventDefault(); - onToggle(); - } - } } - > - { __( 'Title' ) } - - ) } - renderContent={ () => ( - { lockTitleControlsMessage } - ) : ( - <> - { __( - 'Describe the role of this image on the page.' - ) } - + { title && ( + ( + { + if ( + ! isOpen && + event.keyCode === DOWN + ) { + event.preventDefault(); + onToggle(); + } + } } + > + { __( 'Title' ) } + + ) } + renderContent={ () => ( + + { lockTitleControlsMessage } + + ) : ( + <> { __( - '(Note: many devices and browsers do not display this text.)' + 'Describe the role of this image on the page.' ) } - - - ) - } - /> - ) } - /> + + { __( + '(Note: many devices and browsers do not display this text.)' + ) } + + + ) + } + /> + ) } + /> + ) } ) }