refactor(css): replace background transition with background-color#56598
refactor(css): replace background transition with background-color#56598li-jia-nan merged 3 commits intomasterfrom
Conversation
|
|
👁 Visual Regression Report for PR #56598 Failed ❌
Important There are 3 diffs found in this PR: 🔄
|
Summary of ChangesHello @li-jia-nan, 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! This pull request refines CSS transition declarations within several UI components by replacing the broad Highlights
🧠 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. Using Gemini Code AssistThe 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
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 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
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthrough统一将多个组件样式中的 CSS 过渡属性由 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 分钟 Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
size-limit report 📦
|
There was a problem hiding this comment.
Pull request overview
This PR fixes CSS transition properties by replacing the shorthand background property with the more specific background-color property in transitions. Using background in transitions is not recommended because it's a composite property that includes background-image, background-position, etc., which can lead to unnecessary computations.
Changes:
- Updated transition properties from
backgroundtobackground-colorin Steps, Radio, and Menu components - Reformatted one transition array in horizontal menu style for consistency
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| components/steps/style/icon.ts | Changed icon transition from background to background-color |
| components/radio/style/index.ts | Changed radio button wrapper transition from background to background-color |
| components/menu/style/vertical.ts | Changed vertical menu item transition from background to background-color |
| components/menu/style/index.ts | Changed transitions from background to background-color in menu items, submenu arrows, and submenu containers (5 occurrences) |
| components/menu/style/horizontal.ts | Changed horizontal menu transition from background to background-color and reformatted array for consistency |
Deploying ant-design-next with
|
| Latest commit: |
95bcf7a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://aa37c81e.ant-design-next.pages.dev |
| Branch Preview URL: | https://transition-background-update.ant-design-next.pages.dev |
Deploying ant-design with
|
| Latest commit: |
95bcf7a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a863ba2e.ant-design.pages.dev |
| Branch Preview URL: | https://transition-background-update.ant-design.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #56598 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 807 807
Lines 14925 14925
Branches 3936 3936
=========================================
Hits 14925 14925 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 286 bytes (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
Files in
Files in
|










中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
将
transition: background调整为transition: background-color,background为复合属性,整体参与 transition,属于非推荐写法