Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions site-dumi-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export default function siteDumiPlugin(api: IApi) {
'site/theme/markdownExternalLink.less',
),
},
{
source: path.join(
api.paths.cwd,
'site/theme/antTaskListSimpleSiteDefaults.less',
),
},
];
});
}
10 changes: 10 additions & 0 deletions site/theme/antTaskListSimpleSiteDefaults.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 文档/演示中嵌入的 Agentic 任务列表:站点侧默认与组件库一致
.ant-task-list-simple {
padding: 0 4px;
}

.ant-task-list-simple.ant-task-list-simple-collapsed .ant-task-list-simple-content,
.ant-task-list-simple .ant-task-list-simple-content.ant-task-list-simple-content-collapsed {
height: 0;
overflow: hidden;
Comment on lines +8 to +9
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Using height: 0 and overflow: hidden to hide collapsed content can cause accessibility issues, as interactive elements inside the collapsed area remain focusable via keyboard. Additionally, if the content node has padding or borders, height: 0 alone will not fully collapse the space, which contradicts the goal of not reserving space when folded. Since there is no CSS transition defined, display: none; is a more robust and accessible way to ensure the content is hidden and removed from the layout.

  display: none;

}
Loading