From 87d6bf45dce90228b638bf9d442d711442b24dc2 Mon Sep 17 00:00:00 2001 From: Vinicius Reis Date: Wed, 13 Jul 2022 15:26:22 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BF=EF=B8=8F=20(#2387):=20add=20missi?= =?UTF-8?q?ng=20aria=20labels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vinicius Reis --- src/components/EditorWrapper.vue | 11 +++++++++-- src/components/Menu/ActionImageUpload.vue | 1 + src/components/Menu/ActionList.vue | 2 ++ src/components/Menu/ActionSingle.vue | 1 + src/components/Menu/EmojiPickerAction.vue | 1 + src/components/Menu/MenuBar.vue | 8 +++++++- 6 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/EditorWrapper.vue b/src/components/EditorWrapper.vue index 6965fb40bed..8f4ec45b3e3 100644 --- a/src/components/EditorWrapper.vue +++ b/src/components/EditorWrapper.vue @@ -54,10 +54,13 @@ :autohide="autohide" :loaded.sync="menubarLoaded">
-
+
{{ lastSavedStatus }}
@@ -78,6 +81,8 @@ :content-wrapper="contentWrapper" :file-path="relativePath" />
@@ -658,7 +663,9 @@ export default { if (state.initialLoading && !this.contentLoaded) { this.contentLoaded = true if (this.autofocus && !this.readOnly) { - this.$editor.commands.focus() + this.$nextTick(() => { + this.$editor.commands.focus() + }) } this.$emit('ready') // TODO: remove $parent access diff --git a/src/components/Menu/ActionImageUpload.vue b/src/components/Menu/ActionImageUpload.vue index d32e4129d2c..a9b87cb754b 100644 --- a/src/components/Menu/ActionImageUpload.vue +++ b/src/components/Menu/ActionImageUpload.vue @@ -24,6 +24,7 @@ :data-text-action-entry="actionEntry.key" :title="actionEntry.label" :aria-label="actionEntry.label" + role="menu" aria-haspopup>