setIsTitleDialogOpen( false ) }
+ offset={ 13 }
+ variant="toolbar"
+ >
+
+
+ setAttributes( {
+ title: value,
+ } )
+ }
+ disabled={ lockTitleControls }
+ help={
+ lockTitleControls ? (
+ <>{ lockTitleControlsMessage }>
+ ) : (
+ <>
+ { __(
+ 'Describe the role of this image on the page.'
+ ) }
+
+ { __(
+ '(Note: many devices and browsers do not display this text.)'
+ ) }
+
+ >
+ )
+ }
+ />
+
+
+ ) }
+ >
+ );
+}
+
export default function Image( {
temporaryURL,
attributes,
@@ -625,112 +773,15 @@ export default function Image( {
// Add some extra controls for content attributes when content only mode is active.
// With content only mode active, the inspector is hidden, so users need another way
// to edit these attributes.
-