From 79b628ebf6622c4880e57aadd5cb268fcacee6f9 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Wed, 29 Mar 2023 10:28:42 -0400 Subject: [PATCH] Update alternative text labels and help text (#49416) * Update alt text help text, add periods. * Alt text (alternative text) -> Alternative text * Add missing periods --- .../block-library/src/cover/edit/inspector-controls.js | 9 ++++----- packages/block-library/src/image/edit.native.js | 2 +- packages/block-library/src/image/image.js | 9 ++++----- packages/block-library/src/media-text/edit.js | 9 ++++----- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/packages/block-library/src/cover/edit/inspector-controls.js b/packages/block-library/src/cover/edit/inspector-controls.js index fcacf44e1c6851..f99180d7601fdd 100644 --- a/packages/block-library/src/cover/edit/inspector-controls.js +++ b/packages/block-library/src/cover/edit/inspector-controls.js @@ -206,9 +206,7 @@ export default function CoverInspectorControls( { isImgElement && ( setAttributes( { alt: newAlt } ) @@ -217,11 +215,12 @@ export default function CoverInspectorControls( { <> { __( - 'Describe the purpose of the image' + 'Describe the purpose of the image.' ) } +
{ __( - 'Leave empty if the image is purely decorative.' + 'Leave empty if decorative.' ) } } diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index 3ffd377005af92..804ae9e1671f6e 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -578,7 +578,7 @@ export class ImageEdit extends Component { footerNote={ <> { __( - 'Describe the purpose of the image. Leave empty if the image is purely decorative.' + 'Describe the purpose of the image. Leave empty if decorative.' ) }{ ' ' } { __( - 'Describe the purpose of the image' + 'Describe the purpose of the image.' ) } - { __( - 'Leave empty if the image is purely decorative.' - ) } +
+ { __( 'Leave empty if decorative.' ) } } /> diff --git a/packages/block-library/src/media-text/edit.js b/packages/block-library/src/media-text/edit.js index 8472de229f7acd..7f46febcef5179 100644 --- a/packages/block-library/src/media-text/edit.js +++ b/packages/block-library/src/media-text/edit.js @@ -270,17 +270,16 @@ function MediaTextEdit( { attributes, isSelected, setAttributes, clientId } ) { { mediaType === 'image' && ( - { __( 'Describe the purpose of the image' ) } + { __( 'Describe the purpose of the image.' ) } - { __( - 'Leave empty if the image is purely decorative.' - ) } +
+ { __( 'Leave empty if decorative.' ) } } />