Skip to content

Commit fe20914

Browse files
authored
Design Tokens - Wizard (#2026)
* Design Tokens - Wizard * Add missing $
1 parent db06e80 commit fe20914

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

src/components/wizard/WizardStates.ts

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,27 @@ const exclamationSmall = require('./assets/exclamationSmall.png');
44
import {WizardStepsConfig} from './types';
55

66
export const StatesConfig: WizardStepsConfig = {
7-
enabled: {color: Colors.grey30, circleColor: Colors.grey60, enabled: true},
8-
disabled: {color: Colors.grey50, circleColor: Colors.grey60},
9-
error: {color: Colors.red30, icon: exclamationSmall, enabled: true, accessibilityInfo: 'Validation Error'},
10-
skipped: {color: Colors.red30, enabled: true, accessibilityInfo: 'Not completed'},
7+
enabled: {color: Colors.$textNeutralHeavy, circleColor: Colors.$outlineDisabled, enabled: true},
8+
disabled: {color: Colors.$textDisabled, circleColor: Colors.$outlineDefault},
9+
error: {
10+
color: Colors.$iconDangerLight,
11+
circleColor: Colors.$outlineDanger,
12+
icon: exclamationSmall,
13+
enabled: true,
14+
accessibilityInfo: 'Validation Error'
15+
},
16+
skipped: {
17+
color: Colors.$textDangerLight,
18+
circleColor: Colors.$outlineDanger,
19+
enabled: true,
20+
accessibilityInfo: 'Not completed'
21+
},
1122
completed: {
12-
color: Colors.grey30,
13-
circleColor: Colors.grey60,
23+
color: Colors.$iconNeutral,
24+
circleColor: Colors.$outlineDisabled,
1425
icon: checkMarkSmall,
1526
enabled: true,
1627
accessibilityInfo: 'Completed'
1728
},
18-
active: {color: Colors.blue10, circleColor: Colors.blue10}
29+
active: {color: Colors.$textPrimary, circleColor: Colors.$outlinePrimary}
1930
};

src/components/wizard/WizardStep.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default asBaseComponent<WizardStepProps>(WizardStep);
118118
const styles = StyleSheet.create({
119119
connector: {
120120
borderWidth: 0.5,
121-
borderColor: Colors.grey60
121+
borderColor: Colors.$outlineDisabled
122122
},
123123
circle: {
124124
width: 24,
@@ -130,6 +130,6 @@ const styles = StyleSheet.create({
130130
},
131131
label: {
132132
marginHorizontal: 8,
133-
color: Colors.grey20
133+
color: Colors.$textNeutralHeavy
134134
}
135135
});

src/components/wizard/index.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component} from 'react';
2-
import {StyleSheet, Platform} from 'react-native';
2+
import {StyleSheet} from 'react-native';
33
import View from '../view';
44
import {Constants, asBaseComponent} from '../../commons/new';
55
import Colors from '../../style/colors';
@@ -103,19 +103,14 @@ export default asBaseComponent<WizardProps, typeof Wizard>(Wizard);
103103

104104
const styles = StyleSheet.create({
105105
container: {
106-
backgroundColor: Colors.white,
106+
backgroundColor: Colors.$backgroundElevated,
107107
paddingVertical: 10,
108108
paddingHorizontal: 15,
109109
flexDirection: 'row',
110110
justifyContent: 'space-between',
111111
width: '100%',
112-
...Platform.select({
113-
ios: {
114-
...Shadows.white30.bottom
115-
},
116-
android: {
117-
elevation: 2
118-
}
119-
})
112+
...Shadows.sh10.bottom,
113+
borderBottomWidth: 1,
114+
borderBottomColor: Colors.$outlineDisabled
120115
}
121116
});

0 commit comments

Comments
 (0)