chore(cleanup)

This commit is contained in:
moklick
2025-06-05 15:44:51 +02:00
parent 09458f52ff
commit 9ebc10ac9f
4 changed files with 4 additions and 4 deletions
@@ -199,7 +199,7 @@ export function EdgeWrapper<EdgeType extends Edge = Edge>({
onKeyDown={isFocusable ? onKeyDown : undefined} onKeyDown={isFocusable ? onKeyDown : undefined}
tabIndex={isFocusable ? 0 : undefined} tabIndex={isFocusable ? 0 : undefined}
role={edge.ariaRole ?? (isFocusable ? 'group' : 'img')} role={edge.ariaRole ?? (isFocusable ? 'group' : 'img')}
aria-roledescription={edge.domAttributes?.['aria-roledescription'] || 'edge'} aria-roledescription="edge"
data-id={id} data-id={id}
data-testid={`rf__edge-${id}`} data-testid={`rf__edge-${id}`}
aria-label={ aria-label={
@@ -196,7 +196,7 @@ export function NodeWrapper<NodeType extends Node>({
onKeyDown={isFocusable ? onKeyDown : undefined} onKeyDown={isFocusable ? onKeyDown : undefined}
tabIndex={isFocusable ? 0 : undefined} tabIndex={isFocusable ? 0 : undefined}
role={node.ariaRole ?? (isFocusable ? 'group' : undefined)} role={node.ariaRole ?? (isFocusable ? 'group' : undefined)}
aria-roledescription={node.domAttributes?.['aria-roledescription'] || 'node'} aria-roledescription="node"
aria-describedby={disableKeyboardA11y ? undefined : `${ARIA_NODE_DESC_KEY}-${rfId}`} aria-describedby={disableKeyboardA11y ? undefined : `${ARIA_NODE_DESC_KEY}-${rfId}`}
aria-label={node.ariaLabel} aria-label={node.ariaLabel}
{...node.domAttributes} {...node.domAttributes}
@@ -138,7 +138,7 @@
: `Edge from ${source} to ${target}`} : `Edge from ${source} to ${target}`}
aria-describedby={focusable ? `${ARIA_EDGE_DESC_KEY}-${store.flowId}` : undefined} aria-describedby={focusable ? `${ARIA_EDGE_DESC_KEY}-${store.flowId}` : undefined}
role={edge.ariaRole ?? (focusable ? 'group' : 'img')} role={edge.ariaRole ?? (focusable ? 'group' : 'img')}
aria-roledescription={edge.domAttributes?.['aria-roledescription'] || 'edge'} aria-roledescription="edge"
onkeydown={focusable ? onkeydown : undefined} onkeydown={focusable ? onkeydown : undefined}
tabindex={focusable ? 0 : undefined} tabindex={focusable ? 0 : undefined}
{...edge.domAttributes} {...edge.domAttributes}
@@ -254,7 +254,7 @@
onkeydown={focusable ? onKeyDown : undefined} onkeydown={focusable ? onKeyDown : undefined}
tabIndex={focusable ? 0 : undefined} tabIndex={focusable ? 0 : undefined}
role={node.ariaRole ?? (focusable ? 'group' : undefined)} role={node.ariaRole ?? (focusable ? 'group' : undefined)}
aria-roledescription={node.domAttributes?.['aria-roledescription'] || 'node'} aria-roledescription="node"
aria-describedby={store.disableKeyboardA11y aria-describedby={store.disableKeyboardA11y
? undefined ? undefined
: `${ARIA_NODE_DESC_KEY}-${store.flowId}`} : `${ARIA_NODE_DESC_KEY}-${store.flowId}`}