feat(Statistic): support classNames and styles for component and ConfigProvider#52141
feat(Statistic): support classNames and styles for component and ConfigProvider#52141zombieJ merged 5 commits intoant-design:nextfrom
classNames and styles for component and ConfigProvider#52141Conversation
|
|
👁 Visual Regression Report for PR #52141 Failed ❌
Warning There are more diffs not shown in the table. Please check the Full Report for details. Important There are 359 diffs found in this PR: 🔄 323 changed, 🆕 36 added.
|
WalkthroughThis pull request introduces a new feature that allows the Changes
|
components/statistic/Statistic.tsx
Outdated
| }; | ||
| styles?: { | ||
| root?: React.CSSProperties; | ||
| content?: React.CSSProperties; |
There was a problem hiding this comment.
Ensure that the styles object is properly validated to prevent potential security risks such as CSS injection.
More templates
commit: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #52141 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 763 763
Lines 13734 13745 +11
Branches 3585 3588 +3
=========================================
+ Hits 13734 13745 +11 ☔ View full report in Codecov by Sentry. |
44362da to
a83b93a
Compare
5bc3671 to
8db663b
Compare
Bundle ReportChanges will increase total bundle size by 6.25MB (185.51%) ⬆️
|
classNames and styles for StatisticclassNames and styles for component and ConfigProvider



















🤔 This is a ...
讨论结果
修正 dom 结构,尊重语义化结构规范, 改为 header 包裹 title的形式,纠正进 next 分支,v5 不允许 breakchange。
🔗 Related
语义化基本复用 #51885
但是 title 确实需要斟酌,符合 原有的 classname 的 title。
不过 modal 组件是因为本身dom那层的classname就命名为header,所以感觉可以启用
title, 待讨论。这边的坑是: title 和 header的区别是: 是否包含 padding, 但是这边来了个 margin-bottom
📝 Change Log
classNamesandstylesfor StatisticclassNames和styles