Skip to content

测试用例 snapshot#9514

Merged
leshalv merged 10 commits intoant-design:masterfrom
leshalv:master
Feb 26, 2026
Merged

测试用例 snapshot#9514
leshalv merged 10 commits intoant-design:masterfrom
leshalv:master

Conversation

@leshalv
Copy link
Collaborator

@leshalv leshalv commented Feb 26, 2026

Summary by CodeRabbit

发布说明

  • 新功能

    • 列表组件添加加载状态和空状态显示
  • 改进

    • 改进列表项目的布局和结构,提升展示效果
    • 优化分页控件的交互和视觉表现
    • 增强无障碍访问支持
  • Bug 修复

    • 修复列表与布局组件中的图标焦点问题
    • 优化列表项目的渲染逻辑

topiam and others added 10 commits February 26, 2026 19:57
+ 修复首次加载数据因 loading 空白占位符替代了 `Empty` 组件问题。
+ 修复列表容器中 `children` 被重复渲染两次的问题。
+ 移除 `ProListContainerInner` 上多余的 `<any>` 泛型参数。
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…ip` 包裹时出现 "Function components cannot be given refs" 警告的问题。
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 26, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

📝 Walkthrough

概述

此PR更新了多个列表和布局相关的快照测试文件,引入无障碍属性(aria-busy、aria-live)、Spin 容器包装器,并将扁平的列表项结构重构为嵌套的 header/meta/content/action 分层结构,同时更新了分页、标签和进度条等 UI 元素的渲染方式。

变更

群组 / 文件(s) 摘要
PageContainer 图标调整
tests/layout/snapshot/snapshot-demos-layout-PageContainer-token.html, tests/snapshot/snapshot-demos-layout-PageContainer-token.html
从内部图标容器移除 tabindex="-1" 属性,简化 SVG 嵌套结构,保持相同的图标渲染语义。
基础列表结构重构
tests/list/snapshot/snapshot-demos-list-basic.html, tests/snapshot/snapshot-demos-list-basic.html
引入 aria-busy/aria-live 属性和 spin 容器,将扁平的 meta/content 结构重构为嵌套的 header/avatar/meta/description/action 分层结构,添加标签组和操作区域。
列表卡片网格布局
tests/list/snapshot/snapshot-demos-list-card-columns.html, tests/list/snapshot/snapshot-demos-list-card.html, tests/list/snapshot/snapshot-demos-list-grid.html
重构卡片容器从单列到两列网格布局(flex-basis: 50%),引入 spin 包装器和无障碍属性,更新卡片头部/内容/标签/操作区域的嵌套结构,重新设计分页组件。
列表项通用结构重构
tests/list/snapshot/snapshot-demos-list-columns-api.html, tests/list/snapshot/snapshot-demos-list-editable-columns.html, tests/list/snapshot/snapshot-demos-list-editable.html, tests/list/snapshot/snapshot-demos-list-enum-switch.html, tests/list/snapshot/snapshot-demos-list-expand.html, tests/list/snapshot/snapshot-demos-list-selection.html, tests/list/snapshot/snapshot-demos-list-shared-columns.html, tests/list/snapshot/snapshot-demos-list-size.html, tests/list/snapshot/snapshot-demos-list-special.html
一致性重构:添加 aria-busy/aria-live 属性,用 spin 容器替换顶级项,重组 header/avatar/meta/description/action 嵌套块,引入复选框、展开图标、头部选项等新控制元素。
列表加载和空状态
tests/list/snapshot/snapshot-demos-list-filter.html, tests/list/snapshot/snapshot-demos-list-search-columns.html, tests/list/snapshot/snapshot-demos-list-search.html
用加载 spinner(ant-spin-spinning)和空状态容器(ant-empty)替换传统分页结构,引入"暂无数据"描述和新的 SVG 插图。
其他列表演示
tests/list/snapshot/snapshot-demos-list-config-provider.html, tests/list/snapshot/snapshot-demos-list-custom-render.html, tests/list/snapshot/snapshot-demos-list-layout.html, tests/list/snapshot/snapshot-demos-list-pagination.html, tests/list/snapshot/snapshot-demos-list-toolbar.html
分别更新:配置提供者(进度条简化和重定位)、自定义渲染(添加头像和内容容器)、布局演示(引入图标和多块项结构)、分页(转换为行基础组合和页面大小控制)、工具栏(spin 包装和统一的度量布局)。

预计代码审查工作量

🎯 3 (中等) | ⏱️ ~20 分钟

可能相关的 PR

  • feat: 卡片列表布局 #9445:该主要 PR 中对列表/卡片 DOM 和转换为弹性基础、响应式两列项布局的大量快照变更与该检索 PR 中 ProList 重构到弹性包装响应式网格的变更直接匹配,因此相关联。

建议标签

list, layout, size:L

诗歌

🐰 列表的序列逐行绽放,
Spin 容器轻轻舒展,
Avatar、Meta、Action 归位,
无障碍属性照亮每个角,
从扁平到分层的完美蜕变!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive PR 标题 "测试用例 snapshot" 与变更内容不匹配。变更涉及多个 List 组件的 snapshot 测试文件的 HTML 结构重构,包括引入 aria 属性、spin 容器、avatar 元数据块的重新组织等,但标题未能有效传达这些具体变更内容。 建议将标题改为更具体的描述,如 "refactor: 更新 List 组件 snapshot 测试文件的 HTML 结构" 或 "test: 更新 List 和 PageContainer snapshot 测试用例",以更清楚地反映变更的实际内容。
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @leshalv, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求主要通过更新一系列UI组件的快照来反映内部渲染机制的调整,特别是对列表组件加载状态的统一处理。这些更改确保了组件在不同场景下加载动画和样式的连贯性。

Highlights

  • 快照更新: 更新了多个UI组件的快照,主要涉及列表组件中加载状态的渲染方式。
  • 加载状态标准化: 在多个列表组件的快照中引入了ant-spinant-spin-container包装器,以标准化加载状态的显示。
  • CSS类名调整: 更新了ant-drawer-maskant-drawer-content-wrapperant-menu-submenu等元素的CSS类名,并移除了tabindex属性。

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • tests/layout/snapshots/mobile.test.tsx.snap
    • 更新了ant-drawer-maskant-drawer-content-wrapper的类名。
    • ant-menu-submenu添加了ant-menu-submenu-selected类。
  • tests/layout/snapshot/snapshot-demos-layout-PageContainer-token.html
    • 从图标span中移除了tabindex="-1"属性。
    • 将图标span包装在一个额外的span元素中。
  • tests/list/snapshots/index.test.tsx.snap
    • 在列表项周围引入了ant-spinant-spin-container包装器。
    • 更新了css-var类名。
  • tests/list/snapshot/snapshot-demos-list-basic.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-card-columns.html
    • 在卡片列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-card.html
    • 在卡片列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-columns-api.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-config-provider.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
    • 更新了css-var类名。
  • tests/list/snapshot/snapshot-demos-list-custom-render.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-editable-columns.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-editable.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-enum-switch.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-expand.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-filter.html
    • ant-pro-list-loading div替换为ant-spin包装器,用于加载状态。
  • tests/list/snapshot/snapshot-demos-list-grid.html
    • 在网格列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-layout.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-pagination.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-search-columns.html
    • ant-pro-list-loading div替换为ant-spin包装器,用于加载状态。
  • tests/list/snapshot/snapshot-demos-list-search.html
    • ant-pro-list-loading div替换为ant-spin包装器,用于加载状态。
  • tests/list/snapshot/snapshot-demos-list-selection.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-shared-columns.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-size.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/list/snapshot/snapshot-demos-list-special.html
    • 在列表项周围引入了ant-spinant-spin-container包装器。
  • tests/snapshot/snapshot-demos-layout-PageContainer-token.html
    • 从图标span中移除了tabindex="-1"属性。
    • 将图标span包装在一个额外的span元素中。
Activity
  • 此拉取请求仅包含代码更改,没有外部评论或审查活动。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai coderabbitai bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 26, 2026
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. size:XXL This PR changes 1000+ lines, ignoring generated files. labels Feb 26, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

这个 Pull Request 主要是更新了多个测试用例的快照文件。这些变更似乎是由于底层组件结构或样式的更新而产生的,例如在列表组件外层增加了 ant-spin 加载状态的包裹容器。由于所有变更都局限于自动生成的快照文件,没有涉及实际的业务逻辑代码,因此本次审查没有发现需要修改的问题。

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
tests/list/snapshot/snapshot-demos-list-editable.html (1)

39-430: 建议补充行为断言,降低快照脆弱性。

这次主要是 DOM 层级与 class 结构重排,快照会对实现细节过敏,后续容易因非功能改动产生大面积噪声。建议在对应 tests/**/*.ts(x) 补充用户可见行为断言,并将结构快照控制在必要范围。

Based on learnings: Applies to /tests//*.{ts,tsx} : Test user behavior rather than implementation details

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/list/snapshot/snapshot-demos-list-editable.html` around lines 39 - 430,
The snapshot captures full DOM implementation details (class/layout) making
tests brittle; update the tests under tests/**/*.ts(x) that render the editable
list to assert user-visible behavior instead of full structure: add assertions
that each list item shows the expected title (elements matching
.ant-pro-list-row-title like "智慧零售平台"/"Ant Design"/etc.), the description
(.ant-pro-list-row-description contains "我是一条测试的描述"), and that the action link
text "编辑" is present and clickable; reduce or remove the large HTML snapshot
and, if a snapshot is still needed, limit it to a minimal, stable piece (e.g.,
an item title or a serialized array of visible texts) rather than the entire
ant-pro-list DOM.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/list/snapshot/snapshot-demos-list-card-columns.html`:
- Around line 122-124: Multiple logo img tags are missing alt attributes which
harms accessibility; update each <img> element (e.g., the logo img shown in the
diff and the other occurrences at the listed positions) to include an
appropriate alt text for informative logos (e.g., alt="Tech UI logo") or use
alt="" if the image is purely decorative, and apply the same change to all other
similar img occurrences mentioned in the comment.

In `@tests/list/snapshot/snapshot-demos-list-config-provider.html`:
- Around line 121-128: The "发布" action is rendered as plain text while "邀请" is
an <a> link, causing lost interactivity; update the action group in the div (the
element containing the "邀请" anchor and the "发布" text) so that "发布" is rendered
as an interactive element (e.g., an <a> or <button>) with the same
styling/attributes and event handler or href as other actions, ensuring it
receives the same focus/keyboard behavior and click handler as "邀请".

---

Nitpick comments:
In `@tests/list/snapshot/snapshot-demos-list-editable.html`:
- Around line 39-430: The snapshot captures full DOM implementation details
(class/layout) making tests brittle; update the tests under tests/**/*.ts(x)
that render the editable list to assert user-visible behavior instead of full
structure: add assertions that each list item shows the expected title (elements
matching .ant-pro-list-row-title like "智慧零售平台"/"Ant Design"/etc.), the
description (.ant-pro-list-row-description contains "我是一条测试的描述"), and that the
action link text "编辑" is present and clickable; reduce or remove the large HTML
snapshot and, if a snapshot is still needed, limit it to a minimal, stable piece
(e.g., an item title or a serialized array of visible texts) rather than the
entire ant-pro-list DOM.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 383a4f2 and f24be0b.

⛔ Files ignored due to path filters (5)
  • tests/layout/__snapshots__/mobile.test.tsx.snap is excluded by !**/*.snap
  • tests/list/__snapshots__/index.test.tsx.snap is excluded by !**/*.snap
  • tests/table/__snapshots__/column.test.tsx.snap is excluded by !**/*.snap
  • tests/table/__snapshots__/valueEnum.test.tsx.snap is excluded by !**/*.snap
  • tests/table/__snapshots__/valueType.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (114)
  • tests/layout/snapshot/snapshot-demos-layout-PageContainer-token.html
  • tests/list/snapshot/snapshot-demos-list-basic.html
  • tests/list/snapshot/snapshot-demos-list-card-columns.html
  • tests/list/snapshot/snapshot-demos-list-card.html
  • tests/list/snapshot/snapshot-demos-list-columns-api.html
  • tests/list/snapshot/snapshot-demos-list-config-provider.html
  • tests/list/snapshot/snapshot-demos-list-custom-render.html
  • tests/list/snapshot/snapshot-demos-list-editable-columns.html
  • tests/list/snapshot/snapshot-demos-list-editable.html
  • tests/list/snapshot/snapshot-demos-list-enum-switch.html
  • tests/list/snapshot/snapshot-demos-list-expand.html
  • tests/list/snapshot/snapshot-demos-list-filter.html
  • tests/list/snapshot/snapshot-demos-list-grid.html
  • tests/list/snapshot/snapshot-demos-list-layout.html
  • tests/list/snapshot/snapshot-demos-list-pagination.html
  • tests/list/snapshot/snapshot-demos-list-search-columns.html
  • tests/list/snapshot/snapshot-demos-list-search.html
  • tests/list/snapshot/snapshot-demos-list-selection.html
  • tests/list/snapshot/snapshot-demos-list-shared-columns.html
  • tests/list/snapshot/snapshot-demos-list-size.html
  • tests/list/snapshot/snapshot-demos-list-special.html
  • tests/list/snapshot/snapshot-demos-list-toolbar.html
  • tests/snapshot/snapshot-demos-layout-PageContainer-token.html
  • tests/snapshot/snapshot-demos-list-basic.html
  • tests/snapshot/snapshot-demos-list-card-columns.html
  • tests/snapshot/snapshot-demos-list-card.html
  • tests/snapshot/snapshot-demos-list-columns-api.html
  • tests/snapshot/snapshot-demos-list-config-provider.html
  • tests/snapshot/snapshot-demos-list-custom-render.html
  • tests/snapshot/snapshot-demos-list-editable-columns.html
  • tests/snapshot/snapshot-demos-list-editable.html
  • tests/snapshot/snapshot-demos-list-enum-switch.html
  • tests/snapshot/snapshot-demos-list-expand.html
  • tests/snapshot/snapshot-demos-list-filter.html
  • tests/snapshot/snapshot-demos-list-grid.html
  • tests/snapshot/snapshot-demos-list-layout.html
  • tests/snapshot/snapshot-demos-list-pagination.html
  • tests/snapshot/snapshot-demos-list-search-columns.html
  • tests/snapshot/snapshot-demos-list-search.html
  • tests/snapshot/snapshot-demos-list-selection.html
  • tests/snapshot/snapshot-demos-list-shared-columns.html
  • tests/snapshot/snapshot-demos-list-size.html
  • tests/snapshot/snapshot-demos-list-special.html
  • tests/snapshot/snapshot-demos-list-toolbar.html
  • tests/snapshot/snapshot-demos-table-DragSortTable-drag-sort-table.html
  • tests/snapshot/snapshot-demos-table-DragSortTable-drag.html
  • tests/snapshot/snapshot-demos-table-ListToolBar-menu.html
  • tests/snapshot/snapshot-demos-table-ListToolBar-multipleLine.html
  • tests/snapshot/snapshot-demos-table-ListToolBar-no-title.html
  • tests/snapshot/snapshot-demos-table-ListToolBar-tabs.html
  • tests/snapshot/snapshot-demos-table-card-title.html
  • tests/snapshot/snapshot-demos-table-columns-setting-custom-icon.html
  • tests/snapshot/snapshot-demos-table-config-provider.html
  • tests/snapshot/snapshot-demos-table-contentWordsItem.html
  • tests/snapshot/snapshot-demos-table-crud.html
  • tests/snapshot/snapshot-demos-table-customization-value-type.html
  • tests/snapshot/snapshot-demos-table-dataSource.html
  • tests/snapshot/snapshot-demos-table-dynamic-columns-state.html
  • tests/snapshot/snapshot-demos-table-dynamic-settings.html
  • tests/snapshot/snapshot-demos-table-enum-filter-type.html
  • tests/snapshot/snapshot-demos-table-error-boundaries-false.html
  • tests/snapshot/snapshot-demos-table-intl.html
  • tests/snapshot/snapshot-demos-table-linkage_form.html
  • tests/snapshot/snapshot-demos-table-listToolBar.html
  • tests/snapshot/snapshot-demos-table-no-option.html
  • tests/snapshot/snapshot-demos-table-normal.html
  • tests/snapshot/snapshot-demos-table-open-rules.html
  • tests/snapshot/snapshot-demos-table-pollinga.html
  • tests/snapshot/snapshot-demos-table-renderTable.html
  • tests/snapshot/snapshot-demos-table-rtl_table.html
  • tests/snapshot/snapshot-demos-table-search.html
  • tests/snapshot/snapshot-demos-table-search_option.html
  • tests/snapshot/snapshot-demos-table-single-test.html
  • tests/snapshot/snapshot-demos-table-single.html
  • tests/snapshot/snapshot-demos-table-theme.html
  • tests/snapshot/snapshot-demos-table-valueType.html
  • tests/snapshot/snapshot-demos-table-valueTypeDate.html
  • tests/snapshot/snapshot-demos-table-valueTypeNumber.html
  • tests/snapshot/snapshot-demos-table-valueType_select.html
  • tests/table/snapshot/snapshot-demos-table-DragSortTable-drag-sort-table.html
  • tests/table/snapshot/snapshot-demos-table-DragSortTable-drag.html
  • tests/table/snapshot/snapshot-demos-table-ListToolBar-menu.html
  • tests/table/snapshot/snapshot-demos-table-ListToolBar-multipleLine.html
  • tests/table/snapshot/snapshot-demos-table-ListToolBar-no-title.html
  • tests/table/snapshot/snapshot-demos-table-ListToolBar-tabs.html
  • tests/table/snapshot/snapshot-demos-table-card-title.html
  • tests/table/snapshot/snapshot-demos-table-columns-setting-custom-icon.html
  • tests/table/snapshot/snapshot-demos-table-config-provider.html
  • tests/table/snapshot/snapshot-demos-table-contentWordsItem.html
  • tests/table/snapshot/snapshot-demos-table-crud.html
  • tests/table/snapshot/snapshot-demos-table-customization-value-type.html
  • tests/table/snapshot/snapshot-demos-table-dataSource.html
  • tests/table/snapshot/snapshot-demos-table-dynamic-columns-state.html
  • tests/table/snapshot/snapshot-demos-table-dynamic-settings.html
  • tests/table/snapshot/snapshot-demos-table-enum-filter-type.html
  • tests/table/snapshot/snapshot-demos-table-error-boundaries-false.html
  • tests/table/snapshot/snapshot-demos-table-intl.html
  • tests/table/snapshot/snapshot-demos-table-linkage_form.html
  • tests/table/snapshot/snapshot-demos-table-listToolBar.html
  • tests/table/snapshot/snapshot-demos-table-no-option.html
  • tests/table/snapshot/snapshot-demos-table-normal.html
  • tests/table/snapshot/snapshot-demos-table-open-rules.html
  • tests/table/snapshot/snapshot-demos-table-pollinga.html
  • tests/table/snapshot/snapshot-demos-table-renderTable.html
  • tests/table/snapshot/snapshot-demos-table-rtl_table.html
  • tests/table/snapshot/snapshot-demos-table-search.html
  • tests/table/snapshot/snapshot-demos-table-search_option.html
  • tests/table/snapshot/snapshot-demos-table-single-test.html
  • tests/table/snapshot/snapshot-demos-table-single.html
  • tests/table/snapshot/snapshot-demos-table-theme.html
  • tests/table/snapshot/snapshot-demos-table-valueType.html
  • tests/table/snapshot/snapshot-demos-table-valueTypeDate.html
  • tests/table/snapshot/snapshot-demos-table-valueTypeNumber.html
  • tests/table/snapshot/snapshot-demos-table-valueType_select.html

Comment on lines +122 to +124
<img
src="https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg"
/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

多处 Logo 图片缺少 alt,建议补齐可访问性文本。

建议为信息性图片提供 alt,若仅装饰用途则显式设置 alt="",避免读屏器输出无意义内容。

🔧 示例修复(其余同类位置同步处理)
-                                    <img
-                                      src="https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg"
-                                    />
+                                    <img
+                                      alt="ProTable logo"
+                                      src="https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg"
+                                    />

Also applies to: 214-216, 306-308, 398-400, 490-492, 582-584, 674-676, 766-768

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/list/snapshot/snapshot-demos-list-card-columns.html` around lines 122 -
124, Multiple logo img tags are missing alt attributes which harms
accessibility; update each <img> element (e.g., the logo img shown in the diff
and the other occurrences at the listed positions) to include an appropriate alt
text for informative logos (e.g., alt="Tech UI logo") or use alt="" if the image
is purely decorative, and apply the same change to all other similar img
occurrences mentioned in the comment.

Comment on lines +121 to +128
<div
style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;"
>
<a>
邀请
</a>
发布
</div>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

“发布” 被渲染为纯文本,操作项交互丢失。

同一操作组里 邀请 是链接,但 发布 现在是纯文本,用户无法触发该操作,属于可见功能退化。

🔧 建议修复
-                          发布
+                          <a>
+                            发布
+                          </a>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/list/snapshot/snapshot-demos-list-config-provider.html` around lines
121 - 128, The "发布" action is rendered as plain text while "邀请" is an <a> link,
causing lost interactivity; update the action group in the div (the element
containing the "邀请" anchor and the "发布" text) so that "发布" is rendered as an
interactive element (e.g., an <a> or <button>) with the same styling/attributes
and event handler or href as other actions, ensuring it receives the same
focus/keyboard behavior and click handler as "邀请".

@leshalv leshalv merged commit cb46130 into ant-design:master Feb 26, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

layout list size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant