fix(module:steps): keep description below line when nzTitle is not set - #9681
fix(module:steps): keep description below line when nzTitle is not set#9681claytonlin1110 wants to merge 9 commits into
Conversation
Summary of ChangesHello @claytonlin1110, 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 addresses a visual bug in the Highlights
Changelog
Activity
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
|
There was a problem hiding this comment.
Code Review
This pull request fixes an issue where a step with only a description could lead to layout problems. The solution correctly reserves space for the title row when it's not present. The changes across the component, styles, and documentation are well-aligned with the goal. I've provided one suggestion on step.component.ts to improve the logic for detecting when to apply the placeholder, making it more robust by distinguishing between an empty title and a non-existent one.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9681 +/- ##
=======================================
Coverage 90.09% 90.10%
=======================================
Files 574 574
Lines 23707 23672 -35
Branches 4816 4815 -1
=======================================
- Hits 21360 21329 -31
+ Misses 1523 1520 -3
+ Partials 824 823 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@Laffery Would you please review? |
|
Fixing this issue requires synchronizing antd6 styles with the DOM structure. |
Like this one? |
|
Yes, but this time we need to synchronize the styles and DOM structure of Ant Design v6, not v5. This is because this issue still exists in v5. |
|
@HyperLife1119 |
|
@HyperLife1119 Fixed. Please review |
|
We also need to ensure that lint passes. |
|
@HyperLife1119 I think synchronize the styles and DOM structure of antd requires too much changes and could be a really big update. In this PR, can we just implement the issue purpose feature only and make a new issue for the syncrhonizing ? |
|
I believe that synchronizing styles and DOM structure is the primary priority; synchronizing these changes just incidentally fixed other issues. WDYT? @Laffery |
This comment was marked as outdated.
This comment was marked as outdated.
|
@HyperLife1119 Okay I have implemented synchronizing antd6 styles and DOM structure. Please review. |
it makes sense, agree with you |
|
@HyperLife1119 Had a chance to review this update? |
|
@HyperLife1119 Removed after pseudo element |
|
@HyperLife1119 Please review |
|
@HyperLife1119 Had a chance to review this? |
|
Yes, I will review this during my free time at work. Please wait patiently. |
|
@HyperLife1119 Did you have a chance to review this? |
|
Yes, we will review this, but our team is currently on vacation, and the style synchronization work in this PR is quite complex. We will check it later, please be patient :) @claytonlin1110 |
|
@HyperLife1119 Did you have a good holiday? Feel free to review when you are back. Thanks. |
|
Please be patient, I will let you know when there are any updates :) |
|
@HyperLife1119 @Laffery Still not available for a review? |
|
@HyperLife1119 Sorry for pinging, but this PR has been passed quite a long time, Is it possible for you to review asap ? or assign any other reviewer? THanks. |
|
After evaluation, it was determined that since NG-ZORRO's base styles are still based on Ant Design 4, directly aligning with Ant Design 6 without fully synchronizing with Ant Design 5 styles presents significant technical challenges. Compared to v5, Ant Design 6 has undergone a fundamental restructuring of the DOM structure for many components, resulting in a substantial increase in the maintenance costs of style synchronization. Currently, some implementations in this PR still deviate from the v6 specification. To ensure the consistency and stability of the component library's styles, we cannot merge this PR at this time. Thank you again for your active contributions and exploration. |
|
Thanks for the review. |
|
We do not accept style changes that are inconsistent with Ant Design at this time :) |
|
@HyperLife1119 But you know, this is a kind of bug which is described in #9676 and it should be fixed |

Problem
With no nzTitle and only nzDescription, the description was shown where the title normally is and could overlap the horizontal step line.
Solution
Fixes: #9676