mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix: update token usage (#36137)
This commit is contained in:
parent
1bcfe0cce3
commit
b6bfdedc5d
@ -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',
|
||||
|
@ -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)',
|
||||
});
|
||||
|
@ -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`]: {
|
||||
|
Loading…
Reference in New Issue
Block a user