chore(controls): add custom aria labels

This commit is contained in:
Abbey Yacoe
2025-05-22 12:36:36 +02:00
parent 3c421d5f02
commit 74929f09bc
6 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -46,13 +46,14 @@ export const defaultLabelConfig = {
'Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.',
// Control elements
'controls.ariaLabel': 'Control Panel',
'controls.zoomin.title': 'Zoom In',
'controls.zoomout.title': 'Zoom Out',
'controls.fitview.title': 'Fit View',
'controls.interactive.title': 'Toggle Interactivity',
// Mini map
'minimap.ariaLabel': 'React Flow mini map',
'minimap.ariaLabel': 'Mini Map',
};
export type LabelConfig = Partial<typeof defaultLabelConfig>;