From e70257a68c6cccf6d70c85dfcd83d1a713006038 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Wed, 28 Aug 2024 12:17:50 -0500 Subject: [PATCH] Rename Alt to Alternative Text in content only image toolbar (#64841) Co-authored-by: jeryj Co-authored-by: getdave Co-authored-by: richtabor Co-authored-by: talldan --- packages/block-library/src/image/image.js | 2 +- test/e2e/specs/editor/various/pattern-overrides.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index 2eec1cd185ed7..996d011b5e62a 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -641,7 +641,7 @@ export default function Image( { } } > { _x( - 'Alt', + 'Alternative text', 'Alternative text for an image. Block toolbar label, a low character count is preferred.' ) } diff --git a/test/e2e/specs/editor/various/pattern-overrides.spec.js b/test/e2e/specs/editor/various/pattern-overrides.spec.js index 88d45ac5d8d3c..83f2f880f3bf1 100644 --- a/test/e2e/specs/editor/various/pattern-overrides.spec.js +++ b/test/e2e/specs/editor/various/pattern-overrides.spec.js @@ -1131,7 +1131,7 @@ test.describe( 'Pattern Overrides', () => { /\/wp-content\/uploads\// ); await editor.showBlockToolbar(); - await editor.clickBlockToolbarButton( 'Alt' ); + await editor.clickBlockToolbarButton( 'Alternative text' ); await page .getByRole( 'textbox', { name: 'alternative text' } ) .fill( 'Test Image' );