@momo-kits/step 0.79.6 → 0.80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/StepsVertical.tsx +1 -1
- package/package.json +1 -1
- package/utils.ts +3 -3
package/StepsVertical.tsx
CHANGED
|
@@ -17,7 +17,7 @@ const StepsVertical: FC<StepsProps> = ({steps, activeIndex, size}) => {
|
|
|
17
17
|
const {backgroundColor, borderColor} = stepStyle;
|
|
18
18
|
const lineColor =
|
|
19
19
|
activeIndex > ii
|
|
20
|
-
? theme.colors.
|
|
20
|
+
? theme.colors.primary + '33'
|
|
21
21
|
: theme.colors.background.default;
|
|
22
22
|
return (
|
|
23
23
|
<View
|
package/package.json
CHANGED
package/utils.ts
CHANGED
|
@@ -74,7 +74,7 @@ export const getStepColor = (
|
|
|
74
74
|
) => {
|
|
75
75
|
const {theme} = useContext(ApplicationContext);
|
|
76
76
|
const DEFAULT_LINE_COLOR = theme.colors.background.default;
|
|
77
|
-
const COMPLETED_LINE_COLOR = theme.colors.
|
|
77
|
+
const COMPLETED_LINE_COLOR = theme.colors.primary + '33';
|
|
78
78
|
|
|
79
79
|
let backgroundColor = Colors.black_06;
|
|
80
80
|
let borderColor = theme.colors.border.default;
|
|
@@ -110,8 +110,8 @@ export const getStepColor = (
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
case 'completed': {
|
|
113
|
-
backgroundColor =
|
|
114
|
-
borderColor =
|
|
113
|
+
backgroundColor = theme.colors.primary + '33';
|
|
114
|
+
borderColor = theme.colors.background.selected;
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
|