fix: slider, checkbox style

This commit is contained in:
07akioni 2020-10-07 18:39:32 +08:00
parent 160b029fc0
commit 00b4e7638d
4 changed files with 12 additions and 3 deletions

View File

@ -122,7 +122,7 @@ export default c([
]
),
// checkbox-group
cTB('checkbox-group', {
cB('checkbox-group', {
raw: `
font-size: 14px;
line-height: 1.25;

View File

@ -22,7 +22,8 @@ export default c([
dotBoxShadowActive,
railHeight,
handleSize,
dotSize
dotSize,
indicatorBorderRadius
} = props.$local
const {
cubicBezierEaseInOut,
@ -169,8 +170,8 @@ export default c([
font-size: 14px;
padding: 8px 12px;
margin-bottom: 12px;
border-radius: 4px;
`,
borderRadius: indicatorBorderRadius,
color: indicatorTextColor,
backgroundColor: indicatorColor,
boxShadow: indicatorBoxShadow

View File

@ -15,6 +15,9 @@ export default create({
popoverColor,
textColorSecondaryOverlay
} = derived
const {
borderRadius
} = base
const defaultFillColor = composite(cardColor, changeColor(primaryColor, { alpha: 0.7 }))
return {
...sizeVariables,
@ -31,6 +34,7 @@ export default create({
indicatorColor: popoverColor,
indicatorBoxShadow: boxShadow,
indicatorTextColor: textColorSecondaryOverlay,
indicatorBorderRadius: borderRadius,
dotBoxShadow: `inset 0 0 0 2px ${defaultFillColor}`,
dotBoxShadowActive: `inset 0 0 0 2px ${primaryColor}`
}

View File

@ -16,6 +16,9 @@ export default create({
primaryColorHover,
baseColor
} = derived
const {
borderRadius
} = base
return {
...sizeVariables,
railColor: railColorOverlay,
@ -30,6 +33,7 @@ export default create({
indicatorColor: indicatorColor,
indicatorBoxShadow: boxShadow,
indicatorTextColor: baseColor,
indicatorBorderRadius: borderRadius,
dotBoxShadow: `inset 0 0 0 2px ${primaryColor}`,
dotBoxShadowActive: `inset 0 0 0 2px ${primaryColorHover}`
}