chore: set default role to group, add aria-roledescription

This commit is contained in:
Abbey Yacoe
2025-06-02 13:19:27 +02:00
parent cdc08f1b54
commit 28b0430606
3 changed files with 10 additions and 5 deletions
@@ -252,7 +252,8 @@
: undefined}
onkeydown={focusable ? onKeyDown : undefined}
tabIndex={focusable ? 0 : undefined}
role={node.ariaRole === null ? undefined : node.ariaRole || (focusable ? 'button' : undefined)}
role={node.ariaRole === null ? undefined : node.ariaRole || (focusable ? 'group' : undefined)}
aria-roledescription={node.ariaRoleDescription || 'node'}
aria-describedby={store.disableKeyboardA11y
? undefined
: `${ARIA_NODE_DESC_KEY}-${store.flowId}`}