diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index 768c7272e56db..b74079b2b8b79 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -380,6 +380,7 @@ export default function Image( { const resetAll = () => { setAttributes( { + alt: undefined, width: undefined, height: undefined, scale: undefined, @@ -456,14 +457,14 @@ export default function Image( { alt !== '' } + hasValue={ () => !! alt } onDeselect={ () => setAttributes( { alt: undefined } ) } > @@ -481,11 +482,13 @@ export default function Image( { ) } { isResizable && dimensionsControl } - + { !! imageSizeOptions.length && ( + + ) } { showLightboxToggle && ( !! lightbox }