From b5e754a48c004c862dda188882d4b2f1f6c699e7 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Wed, 11 Sep 2024 10:53:02 -0700 Subject: [PATCH] fix: a11y - add alt text for "exit" button in the editors --- .../EditorContainer/__snapshots__/index.test.jsx.snap | 2 ++ src/editors/containers/EditorContainer/index.jsx | 1 + src/editors/containers/EditorContainer/messages.js | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/src/editors/containers/EditorContainer/__snapshots__/index.test.jsx.snap b/src/editors/containers/EditorContainer/__snapshots__/index.test.jsx.snap index 49598b47ee..02c89e55d7 100644 --- a/src/editors/containers/EditorContainer/__snapshots__/index.test.jsx.snap +++ b/src/editors/containers/EditorContainer/__snapshots__/index.test.jsx.snap @@ -51,6 +51,7 @@ exports[`EditorContainer component render snapshot: initialized. enable save and /> diff --git a/src/editors/containers/EditorContainer/messages.js b/src/editors/containers/EditorContainer/messages.js index b8301ca810..a6f1754fb2 100644 --- a/src/editors/containers/EditorContainer/messages.js +++ b/src/editors/containers/EditorContainer/messages.js @@ -12,6 +12,11 @@ const messages = defineMessages({ defaultMessage: 'Are you sure you want to exit the editor? Any unsaved changes will be lost.', description: 'Description text for modal confirming cancellation', }, + exitButtonAlt: { + id: 'authoring.editorContainer.exitButton.alt', + defaultMessage: 'Exit the editor', + description: 'Alt text for the Exit button', + }, okButtonLabel: { id: 'authoring.editorContainer.okButton.label', defaultMessage: 'OK',