From 9c9a086788f76a88dc833348eaa0fb042e9623f0 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 1 Dec 2023 07:34:37 +0100 Subject: [PATCH] accessible `ActionSelect`/ `ActionInput` (#4132) * made sure that the ActionSelect'or has correct accessibiltiy tags * fixed linting error * improved the ActionInputs accessibility --- src/components/ActionInput.vue | 11 +++++++++-- src/components/ActionSelect.vue | 22 ++++++++++++++++++---- src/components/settings/Notifications.vue | 6 +++--- src/lang/en.json | 4 ++++ src/pages/EditMonitor.vue | 6 +++++- 5 files changed, 39 insertions(+), 10 deletions(-) diff --git a/src/components/ActionInput.vue b/src/components/ActionInput.vue index fe3504b17..44c9e586f 100644 --- a/src/components/ActionInput.vue +++ b/src/components/ActionInput.vue @@ -8,9 +8,9 @@ :placeholder="placeholder" :disabled="!enabled" > - + @@ -66,6 +66,13 @@ export default { action: { type: Function, default: () => {}, + }, + /** + * The aria-label of the action button + */ + actionAriaLabel: { + type: String, + required: true, } }, emits: [ "update:modelValue" ], diff --git a/src/components/ActionSelect.vue b/src/components/ActionSelect.vue index 78daebc26..b163cd3a0 100644 --- a/src/components/ActionSelect.vue +++ b/src/components/ActionSelect.vue @@ -1,11 +1,11 @@ @@ -20,6 +20,13 @@ export default { type: Array, default: () => [], }, + /** + * The id of the form which will be targeted by a