From 32e97b8d6f2c40a307e383015eb0959bbbe8f849 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 22 Jan 2025 11:06:11 +0100 Subject: [PATCH] fix(a11y): add labels to editor buttons --- .../components/input/editor/EditorToolbar.vue | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/input/editor/EditorToolbar.vue b/frontend/src/components/input/editor/EditorToolbar.vue index 06ed8927e..b5b834727 100644 --- a/frontend/src/components/input/editor/EditorToolbar.vue +++ b/frontend/src/components/input/editor/EditorToolbar.vue @@ -9,8 +9,12 @@ > - 1 + + {{ $t('input.editor.heading1') }} - 2 + + {{ $t('input.editor.heading2') }} - 3 + + {{ $t('input.editor.heading3') }} @@ -46,6 +58,7 @@ + {{ $t('input.editor.bold') }} + {{ $t('input.editor.italic') }} + {{ $t('input.editor.underline') }} + {{ $t('input.editor.strikethrough') }} @@ -89,6 +105,7 @@ + {{ $t('input.editor.code') }} + {{ $t('input.editor.quote') }} @@ -112,6 +130,7 @@ + {{ $t('input.editor.bulletList') }} + {{ $t('input.editor.orderedList') }} + {{ $t('input.editor.taskList') }}
+ {{ $t('input.editor.image') }}
@@ -158,6 +180,7 @@ + {{ $t('input.editor.link') }} + {{ $t('input.editor.text') }} + {{ $t('input.editor.horizontalRule') }} @@ -191,6 +216,7 @@ + {{ $t('input.editor.undo') }} + {{ $t('input.editor.redo') }} @@ -214,6 +241,7 @@ + {{ $t('input.editor.table.title') }}
.editor-toolbar__button { margin-right: .5rem; margin-bottom: .5rem;