fix(pickers): repair data-slot selectors and align demos with the baseline
The CSS port prefixed data-slot attribute values with hv-, so the compiled selectors never matched the DOM and the ComboBox trigger chevron never rotated. Only class names get the prefix; slot values stay byte-identical. Also commit typed text as the value when allowsCustomValue finds no record, restore the baseline search-field shell in all 24 Autocomplete demos, and correct both doc pages against the pinned upstream sources.
This commit is contained in:
@@ -1035,3 +1035,11 @@ Tag/TagGroup/ErrorMessage 的最新验收见 [B03 复核记录](migrations/B03-r
|
||||
- 独立 tarball 消费(`/private/tmp/b02-consumer`,两族共用脚本 `tests/package/consume-b02-pickers.mjs`):导出、SSR HTML 契约、CSS 选择器与变体函数均通过;完整类型正反例矩阵留给 B02d。
|
||||
- 浏览器 5182(Chromium/IAB):29 个触发器;打开后焦点进入弹层内 `role="combobox"` 搜索框且 `aria-activedescendant` 指向真实 option;输入 “Te” 只留 Texas 且活动项随之更新;多选 `Enter` 后保持打开并显示标签;空集合示例直接显示“未找到结果”;分组示例 12 行 3 组;虚拟化示例 1000 行仅挂载 12 行,`End` 后 `scrollTop` 49692、活动项在视口内;禁用触发器 `tabindex=-1`;弹层宽度 256 = 触发器宽度;浅/深色触发器背景正确;控制台无 error/warning。
|
||||
- 未验证:真实系统 IME、读屏软件、逐像素对比、浮层选项的真实鼠标点击(本 IAB 报 `not actionable`)、完整产物类型正反例(B02d)。
|
||||
|
||||
## 2026-10-25 B02 逐示例对照复核
|
||||
|
||||
48 个示例逐例与固定基线核对的过程、逐例结论表与差异清单见 [B02 报告](migrations/B02-combobox-autocomplete.md) 第 13 节;本段只记录本轮命令与证据。
|
||||
|
||||
- `pnpm typecheck` 通过;`pnpm test` **81 文件 / 1078 项**通过(比 B02c 多 5 项:ComboBox 自定义值回车两例、两族 `data-slot` 契约、Autocomplete 示例搜索框壳层契约);`pnpm build:docs`、`pnpm build:playground`、`pnpm format`、`git diff --check` 通过。
|
||||
- 编译产物证据(`pnpm build:docs` 输出 `apps/docs/.vitepress/dist/assets/style.*.css`):`data-slot` 属性值已全部去掉误加的 `hv-` 前缀,`data-slot="hv-` 计数为 0;存在 `.hv-combo-box__trigger[data-open=true] [data-slot=combo-box-trigger-default-icon]{rotate:180deg}`、`.hv-autocomplete__indicator[data-slot=autocomplete-default-indicator]`(1rem)与 `.hv-autocomplete__clear-button [data-slot=autocomplete-clear-button-icon]`(0.875rem)。
|
||||
- 浏览器复验本轮未完成:IAB 在 `Page.enable`(20s)与 `Runtime.evaluate`(10s)连续超时,`tabs.new()` 报 `renderer timed out handling IAB create`,`agent.browsers.list()` 仅有 IAB 一个后端、无扩展 Chrome 可切换。因此本轮不声称已完成浏览器视觉复验;B02b/B02c 那两轮的浏览器结果仍有效,但早于本轮 CSS 与自定义值修复,待 IAB 恢复后需补验触发器图标旋转、弹层搜索框 secondary 变体与自定义值展示。
|
||||
|
||||
Reference in New Issue
Block a user