From 628d5af5f32079d540a013fca94a86b67381c4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Sat, 17 Oct 2026 07:56:24 +0800 Subject: [PATCH] a11y(filter-editor): label type and operator controls Associate each fixed select with a stable per-condition label while keeping the compact visual layout unchanged. --- app/components/FilterNodeEditor.vue | 5 +++++ app/composables/useI18n.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/components/FilterNodeEditor.vue b/app/components/FilterNodeEditor.vue index 61c15db..eb2e601 100644 --- a/app/components/FilterNodeEditor.vue +++ b/app/components/FilterNodeEditor.vue @@ -23,6 +23,7 @@ const emit = defineEmits<{ (e: "remove"): void }>(); const { t, locale } = useI18n(); const { confirm } = useConfirm(); +const fieldId = `filter-node-${useId()}`; const scopeEvents = inject( FILTER_SCOPE_EVENTS, computed((): string[] => []), @@ -141,7 +142,9 @@ async function remove(): Promise { }" >
+ { />
+