chore(a11y): add controls to LabelConfig

This commit is contained in:
Abbey Yacoe
2025-05-21 16:50:48 +02:00
parent 91ecfe73cc
commit 3858d3b08b
3 changed files with 20 additions and 10 deletions
+6
View File
@@ -44,6 +44,12 @@ export const defaultLabelConfig = {
'Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.',
'a11yDescription.edge.default':
'Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.',
// Control elements
'controls.zoomin.title': 'Zoom In',
'controls.zoomout.title': 'Zoom Out',
'controls.fitview.title': 'Fit View',
'controls.interactive.title': 'Toggle Interactivity',
};
export type LabelConfig = Partial<typeof defaultLabelConfig>;