diff --git a/packages/core/src/auto-imports.d.ts b/packages/core/src/auto-imports.d.ts index 28564012..be98b036 100644 --- a/packages/core/src/auto-imports.d.ts +++ b/packages/core/src/auto-imports.d.ts @@ -8,6 +8,8 @@ declare global { const $ref: typeof import('vue/macros')['$ref'] const $shallowRef: typeof import('vue/macros')['$shallowRef'] const $toRef: typeof import('vue/macros')['$toRef'] + const ARIA_EDGE_DESC_KEY: typeof import('./utils/a11y')['ARIA_EDGE_DESC_KEY'] + const ARIA_NODE_DESC_KEY: typeof import('./utils/a11y')['ARIA_NODE_DESC_KEY'] const EdgeId: typeof import('./context/index')['EdgeId'] const EdgeRef: typeof import('./context/index')['EdgeRef'] const EffectScope: typeof import('vue')['EffectScope'] @@ -57,6 +59,7 @@ declare global { const defineComponent: typeof import('vue')['defineComponent'] const eagerComputed: typeof import('@vueuse/core')['eagerComputed'] const effectScope: typeof import('vue')['effectScope'] + const elementSelectionKeys: typeof import('./utils/a11y')['elementSelectionKeys'] const extendRef: typeof import('@vueuse/core')['extendRef'] const getBezierEdgeCenter: typeof import('./components/Edges/utils/general')['getBezierEdgeCenter'] const getBezierPath: typeof import('./components/Edges/utils/bezier')['getBezierPath'] diff --git a/packages/core/src/components/A11y/A11yDescriptions.vue b/packages/core/src/components/A11y/A11yDescriptions.vue new file mode 100644 index 00000000..cfabeea2 --- /dev/null +++ b/packages/core/src/components/A11y/A11yDescriptions.vue @@ -0,0 +1,16 @@ + + + diff --git a/packages/core/src/utils/a11y.ts b/packages/core/src/utils/a11y.ts new file mode 100644 index 00000000..3a1d4f0c --- /dev/null +++ b/packages/core/src/utils/a11y.ts @@ -0,0 +1,4 @@ +export const ARIA_NODE_DESC_KEY = 'vue-flow__node-desc' +export const ARIA_EDGE_DESC_KEY = 'vue-flow__edge-desc' + +export const elementSelectionKeys = ['Enter', ' ', 'Escape']