Skip to content

docs(site): ant-task-list-simple embed padding and collapsed content#9608

Draft
chenshuai2144 wants to merge 1 commit intomasterfrom
cursor/ant-task-list-simple-site-defaults-9b4f
Draft

docs(site): ant-task-list-simple embed padding and collapsed content#9608
chenshuai2144 wants to merge 1 commit intomasterfrom
cursor/ant-task-list-simple-site-defaults-9b4f

Conversation

@chenshuai2144
Copy link
Copy Markdown
Contributor

Summary

Adds site-level Less defaults for embedded Agentic task list UI (.ant-task-list-simple).

Changes

  • site/theme/antTaskListSimpleSiteDefaults.less
    • .ant-task-list-simple uses padding: 0 4px
    • When collapsed (.ant-task-list-simple-collapsed on the root, or .ant-task-list-simple-content-collapsed on the content node), .ant-task-list-simple-content uses height: 0 and overflow: hidden so the body does not reserve space when folded
  • site-dumi-plugin.ts: import the new Less file through the existing entry pipeline (same pattern as markdownExternalLink.less)

If the embed only toggles a class on the root, use ant-task-list-simple-collapsed on .ant-task-list-simple. If it only marks the content node, use ant-task-list-simple-content-collapsed on .ant-task-list-simple-content.

Submitted by Cursor

Open in Web Open in Cursor 

- Set .ant-task-list-simple padding to 0 4px
- Collapse .ant-task-list-simple-content height to 0 when parent or
  content has a -collapsed modifier, with overflow hidden

Co-authored-by: 陈帅 <wasd2144@hotmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 23, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 58416c1f-0923-4437-a21f-f05bebf44e1a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/ant-task-list-simple-site-defaults-9b4f

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.

Copy link
Copy Markdown
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

This pull request registers a new LESS file, antTaskListSimpleSiteDefaults.less, within the site plugin and defines styles for the .ant-task-list-simple component. Feedback was provided to replace height: 0 and overflow: hidden with display: none for the collapsed state to improve accessibility and ensure the content is properly hidden from the layout.

Comment on lines +8 to +9
height: 0;
overflow: hidden;
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;

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.53%. Comparing base (bdbf841) to head (8932cc6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9608   +/-   ##
=======================================
  Coverage   88.53%   88.53%           
=======================================
  Files         368      368           
  Lines       11257    11257           
  Branches     4157     4154    -3     
=======================================
  Hits         9966     9966           
  Misses       1139     1139           
  Partials      152      152           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants