Skip to content

fix(svelte): pass ariaLabel to node wrapper#5801

Merged
moklick merged 2 commits into
xyflow:mainfrom
sahilmane69:fix-svelte-aria-label
May 31, 2026
Merged

fix(svelte): pass ariaLabel to node wrapper#5801
moklick merged 2 commits into
xyflow:mainfrom
sahilmane69:fix-svelte-aria-label

Conversation

@sahilmane69
Copy link
Copy Markdown
Contributor

Summary

This PR fixes an issue in @xyflow/svelte where the ariaLabel property defined on a node was not passed to the rendered DOM element.

Changes

  • Added aria-label={node.ariaLabel} to NodeWrapper.svelte

Result

Nodes configured with an ariaLabel now correctly render an aria-label attribute on the corresponding .svelte-flow__node element.

Fixes #5799

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

🦋 Changeset detected

Latest commit: 536ff5f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@xyflow/svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sahilmane69
Copy link
Copy Markdown
Contributor Author

I've opened a PR with a proposed fix for this issue:
#5801

@moklick moklick merged commit b5d5f8d into xyflow:main May 31, 2026
@moklick
Copy link
Copy Markdown
Member

moklick commented May 31, 2026

thanks!

@moklick moklick mentioned this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing aria-label on the node in @xyflow/svelte

2 participants