Repository navigation
fix(react-router,solid-router,vue-router): keep a caller-set role on a disabled Link - #8993
YehudaMenahem wants to merge 1 commit into
Conversation
…a disabled Link A disabled Link only defaults to role="link" when the caller did not set a role, so composition with host-injected roles (e.g. menuitem) still works. Fixes TanStack#8981. Co-authored-by: Yehuda Menahem <jmenahem@gmail.com>
🦋 Changeset detectedLatest commit: cc595d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
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 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
🎯 Changes
Fixes #8981.
A disabled
Linksetrole="link"after the caller's props were merged, so an explicit role was always overwritten. Nowrole="link"is only the default when no role was given. Same fix in react, solid, and vue.✅ Checklist
🚀 Release Impact
Summary by CodeRabbit
role="link"and indicate their disabled state to assistive technologies.