From dbf8c55b86f1b77136dfbc1e00bdc1be550668cb Mon Sep 17 00:00:00 2001 From: Alessandro Venturini Date: Fri, 29 Aug 2025 16:44:25 +0200 Subject: [PATCH 1/5] chore: improved accessibility for ValueIOControl --- src/components/devices/ValueIOControl.vue | 119 +++++++++++++--------- src/views/devices/DeviceView.vue | 2 + 2 files changed, 71 insertions(+), 50 deletions(-) diff --git a/src/components/devices/ValueIOControl.vue b/src/components/devices/ValueIOControl.vue index ce8cd6c..5f5ec63 100644 --- a/src/components/devices/ValueIOControl.vue +++ b/src/components/devices/ValueIOControl.vue @@ -22,6 +22,7 @@ const { typeConstraints, isInput } = defineProps<{ * Tells the control if it should also register user input */ isInput: boolean + accessibilityLabel: string }>() const emit = defineEmits<{ /** @@ -114,74 +115,92 @@ const rangeControlValue = computed({ diff --git a/src/views/devices/DeviceView.vue b/src/views/devices/DeviceView.vue index ddbd6f3..2df0e1e 100644 --- a/src/views/devices/DeviceView.vue +++ b/src/views/devices/DeviceView.vue @@ -162,6 +162,7 @@ onUnmounted(() => { @@ -218,6 +219,7 @@ onUnmounted(() => { v-if="executingAction" :typeConstraints="executingAction!.inputTypeConstraints" :isInput="true" + :accessibility-label="executingAction!.name" v-model="executingActionInput" v-model:isInputValid="isExecutingActionInputValid" /> From 2f018c2d57b763a8b4f1ab6e96a2347992018a6f Mon Sep 17 00:00:00 2001 From: Alessandro Venturini Date: Fri, 29 Aug 2025 16:51:06 +0200 Subject: [PATCH 2/5] chore: use span instead of i html element --- src/components/AddButton.vue | 4 ++-- src/views/LoginView.vue | 6 +++--- src/views/SettingsView.vue | 14 +++++++------- src/views/SigninView.vue | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/AddButton.vue b/src/components/AddButton.vue index 8a85686..4b303df 100644 --- a/src/components/AddButton.vue +++ b/src/components/AddButton.vue @@ -19,7 +19,7 @@ function onclick() { class="btn btn-primary shadow !flex items-center gap-2 w-12 h-12 sm:w-auto sm:h-auto sm:gap-2 rounded-full sm:rounded-lg py-2 pointer-events-auto" > - + diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index 3e2a46c..f35f7f7 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -9,7 +9,7 @@
Email