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
[Theme] V4 Component Token Migration #41884
Comments
Hi @MadCcc, |
Yeah, these work would be done in May, and would be published with 5.6.0. |
Thank you for the estimate, hope it will be good by then 🙂 |
mark |
My pick task: |
My pick task: Tag |
My pick task: Alert |
@heiyu4585 Update the Task list in the issue summary is great. |
Message,Result |
My pick task: Radio |
My pick task: Empty |
My pick task: Descriptions |
My pick task: |
My pick task: Checkbox |
My pick task: |
My pick task: Timeline |
I will check it. |
Any news here @MadCcc . I see Layout is still marked as complete when there are many internal tokes unexposed, i.e. layoutHeaderHeight |
hi, @MadCcc, I see that there are many components that you are responsible for, but they are in a pending state now. May I ask if I need to share some of them? I want to participate in open source. |
Thanks for your will to contributing! But it is a delayed work and I'm going to finish it this month. |
@david-cord See #44174 |
|
Thanks @MadCcc and other contributors for finishing the Component Token Migration 🙏 |
hi all, just to share with you, i'm trying use the Table/ComponentToken, but the interface ComponentToken still empty (v 5.8.4). it's merged on feature branch, but not in master. @MadCcc fyi |
yes many design tokens are currently only in feature branch, I guess we have to wait for the next weekly release (tomorrow) or perhaps next week. |
|
Summary
Migrate component less variables in v4 to Component Token in v5.
v4 less variables
How to migrate?
In v5, each component has type
ComponentToken
instyle/index.ts
. v4 less variables should be transformed into one ofComponentToken
and initialized with related Design Token ingenComponentStyleHook
. Then the usage of token in style should also be updated.Currently many of them has been transformed into
xxxToken
in each component, and we need to put them intoComponentToken
. If v4 less variable is not inxxxToken
, we should check if it is suitable for v5.Example PR
#42000
Table may like this:
@modal-header-padding-vertical
@modal-header-padding-horizontal
@modal-body-padding
@modal-header-bg
modalHeaderBg
@modal-header-padding
@modal-header-border-width
@modal-header-border-style
@modal-header-title-line-height
modalHeaderTitleLineHeight
@modal-header-title-font-size
modalHeaderTitleFontSize
@modal-header-border-color-split
@modal-header-close-size
@modal-content-bg
modalContentBg
@modal-heading-color
modalHeadingColor
@modal-close-color
modalCloseIconColor
@modal-footer-bg
modalFooterBg
@modal-footer-border-color-split
@modal-footer-border-style
@modal-footer-padding-vertical
@modal-footer-padding-horizontal
@modal-footer-border-width
@modal-mask-bg
colorBgMask
@modal-confirm-body-padding
@modal-confirm-title-font-size
modalHeaderTitleFontSize
@modal-border-radius
borderRadiusLG
Tokens should be migrated
Tokens that should be migrated may meet any of the following conditions:
XXXToken
.Task list
The text was updated successfully, but these errors were encountered: