-
-
Notifications
You must be signed in to change notification settings - Fork 53.5k
feat: ConfigProvider support classNames
and styles
for Statistic
#52141
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
Conversation
|
👁 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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%) ⬆️
|
🤔 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
classNames
andstyles
for StatisticclassNames
和styles