-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
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
feat: Divider Component Token #42627
feat: Divider Component Token #42627
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #42627 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 663 663
Lines 11273 11274 +1
Branches 3047 3047
=========================================
+ Hits 11273 11274 +1
☔ View full report in Codecov by Sentry. |
@hms181231 可以参考这个 pr 添加一个 component token 的 debug demo |
CI 挂了,可以本地运行 |
@MadCcc 大佬空了看看这个 有需要更改的 我这边及时调整 |
这边拖了比较久不好意思,我直接收尾了哈,感谢贡献 |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
ref #41884
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 62ec5bf
Refactored the
Divider
component to use a new component token for the vertical gutter margin and updated the documentation in both English and Chinese to reflect this change. Deprecated the less variables related to theDivider
component.🔍 Walkthrough
🤖 Generated by Copilot at 62ec5bf
dividerVerticalGutterMargin
property toverticalGutterMargin
inComponentToken
interface (link)genSharedDividerStyle
function to useverticalGutterMargin
property instead ofdividerVerticalGutterMargin
property (link)dividerVerticalGutterMargin
property fromgenDefaultComponentToken
function (link)genDefaultComponentToken
function to return a function that takes global token as argument and returns an object withverticalGutterMargin
andsizePaddingEdgeHorizontal
properties (link)Divider
component in English documentation with new component token and deprecated less variables (docs/react/migrate-less-variables.en-US.md
, link)Divider
component in Chinese documentation with new component token and deprecated less variables (docs/react/migrate-less-variables.zh-CN.md
, link)