@ant-design/icons 每只字形自带 role=img + aria-label=英文字形码,挂在已有文字的
控件里会让读屏把同一个控件报两遍(「upload 导入脚本」「down 导出」)。
- components/icons/index.ts:79 条出口一律套新增的 decorative(),默认 aria-hidden;
调用方显式给非空 aria-label 时保留 role=img(第 ② 档),显式 aria-hidden={false}
时尊重调用方(第 ③ 档)。两头都不一刀切。新增 IconClear。
- kit 一处收口给 4 处「图标就是全部语义」的控件补自然中文名,页面 0 改动:
Tabs more.icon → 更多页签 / SecretInput iconRender → 显示·隐藏密码 /
Pager itemRender → 上一页·下一页 / SearchInput enterButton+clearIcon → 搜索·清空搜索。
- Select/Dropdown/Collapse 的下拉箭头本就被 antd 包在 aria-hidden 里,InputNumber
上下键宿主自带 antd 硬编码英文名,两类都不动(动它要改 antd 内部 DOM 或全站 locale)。
- styles/app.css:唯一一处样式。传 enterButton 元素后 antd 给外层加
.ant-input-search-with-button 并把悬停 z-index 从 1 降到 0,补回 1,悬停像素与改前一致。
DOM 结构、类名、尺寸、颜色、.anticon 选择器一字不变;R15 不受影响。
阶段 8.5.1 · S-2
|
||
|---|---|---|
| .. | ||
| public/help | ||
| src | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||