fix: update token usage (#36137)

This commit is contained in:
MadCcc 2022-06-21 00:35:05 +08:00 committed by GitHub
parent 1bcfe0cce3
commit b6bfdedc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ export default genComponentStyleHook('Progress', token => {
progressLineRadius: 100, // magic for capsule shape, should be a very large number
progressInfoTextColor: token.colorText,
progressDefaultColor: token.colorInfo,
progressRemainingColor: token.colorBgContainer,
progressRemainingColor: token.colorBgComponentTmp,
progressStepMarginInlineEnd,
progressStepMinWidth: progressStepMarginInlineEnd,
progressActiveMotionDuration: '2.4s',

View File

@ -127,7 +127,7 @@ export default genComponentStyleHook(
'Rate',
token => {
const rateToken = mergeToken<RateToken>(token, {
rateStarColor: token.yellow,
rateStarColor: token['yellow-6'],
rateStarSize: token.controlHeightLG * 0.5,
rateStarHoverScale: 'scale(1.1)',
});

View File

@ -55,7 +55,7 @@ const genBaseStyle: GenerateStyle<SliderToken> = token => {
[`${componentCls}-rail`]: {
position: 'absolute',
backgroundColor: token.colorBgContainer,
backgroundColor: token.colorBgComponentTmp,
borderRadius: token.controlRadius,
transition: `background-color ${token.motionDurationSlow}`,
},
@ -168,7 +168,7 @@ const genBaseStyle: GenerateStyle<SliderToken> = token => {
cursor: 'not-allowed',
[`${componentCls}-rail`]: {
backgroundColor: `${token.colorBgContainer} !important`,
backgroundColor: `${token.colorBgComponentTmp} !important`,
},
[`${componentCls}-track`]: {