chore: add handle aria-label

This commit is contained in:
Abbey Yacoe
2025-06-02 14:39:14 +02:00
parent f59730ce35
commit 679f8a9463
2 changed files with 6 additions and 0 deletions
@@ -44,6 +44,8 @@
);
let store = useStore();
let labelConfig = $derived(store.labelConfig);
let prevConnections: Map<string, HandleConnection> | null = null;
$effect.pre(() => {
@@ -227,6 +229,7 @@ The Handle component is the part of a node that can be used to connect nodes.
onkeypress={() => {}}
{style}
role="button"
aria-label={labelConfig[`handle.ariaLabel`]}
tabindex="-1"
{...rest}
>
+3
View File
@@ -56,6 +56,9 @@ export const defaultLabelConfig = {
// Mini map
'minimap.ariaLabel': 'Mini Map',
// Handle
'handle.ariaLabel': 'Handle',
};
export type LabelConfig = Required<typeof defaultLabelConfig>;