qiqi
968ff46a4c
feat(tokens): M4-B2 浮层层级表 + 阴影四档(3.26.45)
用户能感知的只有一件事:弹窗/确认框里操作,成功提示现在看得见。
修一个「改 CSS 治不好」的层级 bug
- .iwb-toast 挂在 .iwb-overlay 内部,而 overlay 自带 z-index:100 + fixed,本身是堆叠上下文,
里面的 toast 写多少都压不过 portal 到 body 的弹窗(300)。所以此前「弹窗里点保存没反应」是提示被盖住。
- 修法改为把 toast 也 portal 到 body,实测 elementFromPoint 命中 toast 本身而非遮罩。
层级表(14 档 --iwb-z-*)
- 数值只在 gen-tokens.js 写一次;浮层族(弹窗/全窗口/命令面板/右键/toast/锚定/确认框/崩溃屏)全改 token,
裸 z-index 取值种类 42 → 31。
- 三条关系由测试钉死:ctx-menu < sheet < modal、toast > modal、sheet-menu 夹在 sheet 与 modal 之间。
阴影四档 + 圆角归一
- 新增 --iwb-elevation-1..4(贴面/菜单/命令面板/弹窗),浮层 8 种写法 → 4 档。
- .iwb-pop 圆角 18px 归到 radius-popover(14);--sh-* 引用归零,legacy 名标 @deprecated。
守卫与验收
- 新增 tests/overlay-layer-test.js(进 test:unit):层级表存在性、9 条顺序约束、禁裸 z-index、
引用必须存在、toast 必须 portal。
- 12 张视觉基线 0 diff;verify:ci 全绿。
2026-11-23 15:33:29 +08:00
..
2026-11-16 18:33:00 +08:00
2026-11-16 18:33:00 +08:00
2026-11-23 14:39:39 +08:00
2026-11-16 18:33:00 +08:00
2026-11-20 09:08:56 +08:00
2026-11-16 18:33:00 +08:00
2026-11-16 18:33:00 +08:00
2026-11-17 15:55:55 +08:00
2026-11-20 10:20:09 +08:00
2026-11-23 07:11:26 +08:00
2026-11-23 07:11:26 +08:00
2026-11-23 15:33:29 +08:00
2026-11-16 18:33:00 +08:00
2026-11-23 15:04:43 +08:00
2026-11-20 10:20:09 +08:00
2026-11-16 18:33:00 +08:00
2026-11-16 18:33:00 +08:00
2026-11-16 18:33:00 +08:00
2026-11-22 14:59:35 +08:00
2026-11-18 15:35:13 +08:00
2026-11-23 15:04:43 +08:00
2026-11-18 15:35:13 +08:00
2026-11-22 14:55:10 +08:00
2026-11-17 13:55:07 +08:00
2026-11-18 23:37:04 +08:00
2026-11-16 18:33:00 +08:00
2026-11-22 15:14:35 +08:00
2026-11-16 18:36:31 +08:00
2026-11-23 14:39:39 +08:00
2026-11-18 22:58:34 +08:00
2026-11-16 18:33:00 +08:00
2026-11-16 18:33:00 +08:00
2026-11-16 18:52:30 +08:00