feat(Descriptions): add labelColor token (#52700)

This commit is contained in:
Guo Yunhe 2025-02-08 15:08:03 +08:00 committed by GitHub
parent be5faf9804
commit c9c05c53c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,11 @@ export interface ComponentToken {
* @descEN Background color of label
*/
labelBg: string;
/**
* @desc
* @descEN Text color of label
*/
labelColor: string;
/**
* @desc
* @descEN Text color of title
@ -165,7 +170,7 @@ const genDescriptionStyles: GenerateStyle<DescriptionsToken> = (token) => {
},
},
[`${componentCls}-item-label`]: {
color: token.colorTextTertiary,
color: token.labelColor,
fontWeight: 'normal',
fontSize: token.fontSize,
lineHeight: token.lineHeight,
@ -233,6 +238,7 @@ const genDescriptionStyles: GenerateStyle<DescriptionsToken> = (token) => {
export const prepareComponentToken: GetDefaultToken<'Descriptions'> = (token) => ({
labelBg: token.colorFillAlter,
labelColor: token.colorTextTertiary,
titleColor: token.colorText,
titleMarginBottom: token.fontSizeSM * token.lineHeightSM,
itemPaddingBottom: token.padding,