New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: There are style issues with Table and other elements under Table expand #47190
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 83c6e79:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #47190 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 732 732
Lines 12563 12563
Branches 3295 3295
=========================================
Hits 12563 12563 ☔ View full report in Codecov by Sentry. |
@@ -38,7 +38,7 @@ const genSizeStyle: GenerateStyle<TableToken, CSSObject> = (token) => { | |||
|
|||
[`${componentCls}-tbody`]: { | |||
// ========================= Nest Table =========================== | |||
[`${componentCls}-wrapper:only-child ${componentCls}`]: { | |||
[`${componentCls}-wrapper ${componentCls}`]: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 :only-child
应该是有用的,blame 一下。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
描述早写清楚了
目前这个样式容易误伤不是直接内嵌的情况(比如放一个 Card 里面再嵌套 Table),建议用 |
你这个问题还没理解啊?这个 demo 没有写 |
原来的写法用 only-child 限制了一部分误伤,但依然有误伤问题。如果去掉,误伤问题将被放大。 因此需要另外找一种限制场景的样式定制方式,避免 expand render 内其他无需右移的 Table 被影响到。 |
之前只是对 |
|
最终是给 |
这里情况很多,可能只能加属性来解决。 |
这个例子,我其实认为是合理的,因为当时就是只对 首先这个是问题吗,比如 |
先抛一个想法。 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
上次加的 pr #23602
这次修复的 issue #47189
📝 Changelog
Table
and other elements underTable
expand
Table
expand
下有Table
和其他元素的样式问题☑️ Self-Check before Merge