From 672922acc770b4cd52f145e040a7ee7524f49347 Mon Sep 17 00:00:00 2001 From: David FYON Date: Tue, 22 Oct 2024 14:23:19 +0200 Subject: [PATCH 1/4] fix accessbility --- packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue b/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue index decc5545e..f0adb0e37 100644 --- a/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue +++ b/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue @@ -56,6 +56,7 @@ export default defineComponent({ closeIcon: mdiClose, locales, dialog: this.modelValue, + titleId: `title-${Math.random().toString(36).substring(7)}` } }, @@ -137,11 +138,11 @@ export default defineComponent({ v-bind="options.card" ref="dialogContent" id="dialogContent" - :aria-labelledby="title ? title : 'dialogContent'" + :aria-labelledby="titleId ? titleId : 'dialogContent'" > -

+

{{ title }}

From 187d51583477deb5759c5ce3f9b1550b85c18d2f Mon Sep 17 00:00:00 2001 From: David FYON Date: Tue, 22 Oct 2024 14:25:55 +0200 Subject: [PATCH 2/4] update snaps --- .../DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/synapse-bridge/src/elements/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap b/packages/synapse-bridge/src/elements/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap index 1ecf43e12..1423b5eea 100644 --- a/packages/synapse-bridge/src/elements/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +++ b/packages/synapse-bridge/src/elements/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap @@ -2,7 +2,7 @@ exports[`DialogBox > rendering and props > renders correctly with props 1`] = `
-
+
-
-`;