Skip to content

Commit

Permalink
Rename Alt to Alternative Text in content only image toolbar (WordPre…
Browse files Browse the repository at this point in the history
…ss#64841)

Co-authored-by: jeryj <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: talldan <[email protected]>
  • Loading branch information
5 people authored and bph committed Aug 31, 2024
1 parent 3614203 commit e70257a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
) }
</ToolbarButton>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/pattern-overrides.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit e70257a

Please sign in to comment.