fix: disable link navigation and align breadcrumb actions and date focus

This commit is contained in:
maoyingjie
2026-10-29 09:03:52 +08:00
parent 680a592e7b
commit 68d45c66f9
27 changed files with 983 additions and 44 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
<!-- task-metadata
{"base":"db5670f4e1efe0e6ef7433002de5fb0a4a284f84","upstream":"ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960","status":"pending","requires":["docs/tasks/HD-QUEUE.md"],"sources":["packages/react/src/components/breadcrumbs/breadcrumbs.tsx"],"checks":["pnpm exec vitest run tests/surface-link-spinner.test.ts tests/date-picker-demos.test.ts tests/date-range-picker-demos.test.ts tests/regressions/navigation-otp/public-contracts.test.ts","pnpm typecheck"]}
{"base":"db5670f4e1efe0e6ef7433002de5fb0a4a284f84","upstream":"ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960","status":"implemented","requires":["docs/tasks/HD-QUEUE.md"],"sources":["packages/react/src/components/breadcrumbs/breadcrumbs.tsx"],"checks":["pnpm exec vitest run tests/surface-link-spinner.test.ts tests/typography-empty-breadcrumbs.test.ts tests/date-picker-demos.test.ts tests/date-range-picker-demos.test.ts tests/regressions/navigation-otp/public-contracts.test.ts","pnpm typecheck","node scripts/check-package.mjs link-focus api-root-aliases date-picker date-range-picker"]}
-->
# HD-06-LINK-FOCUS:禁用链接与日期键盘焦点
@@ -7,9 +7,9 @@
## 执行范围
- [ ] 修 Link 禁用后仍保留可导航 href 的问题,覆盖 target/download/asChild 与动态禁用;保持事件取消和 attrs/ref 合并。Breadcrumbs 逐项核对,它内部部分路径已使用 span,不能一概判为同一缺陷。
- [ ] DatePickerTrigger/DateRangePickerTrigger 使用真实 focus-visible 判定或共享焦点设施;不能 @focus 无条件置 true。
- [ ] 补 Breadcrumbs 当前 locale 的默认可访问名称及 Vue action 事件,保留显式 aria-label 优先级和数字0/空key身份。
- [x] 修 Link 禁用后仍保留可导航 href 的问题,覆盖 target/download/asChild 与动态禁用;保持事件取消和 attrs/ref 合并。Breadcrumbs 逐项核对,它内部部分路径已使用 span,不能一概判为同一缺陷。
- [x] DatePickerTrigger/DateRangePickerTrigger 使用真实 focus-visible 判定或共享焦点设施;不能 @focus 无条件置 true。
- [x] 补 Breadcrumbs 当前 locale 的默认可访问名称及 Vue action 事件,保留显式 aria-label 优先级和数字0/空key身份。
## 用户可见通过条件