Skip to content

Commit 46b9d28

Browse files
M-i-k-e-llidord-wix
authored andcommitted
ProgressBar - move to design tokens (#1962)
1 parent 57051ef commit 46b9d28

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

demo/src/screens/componentScreens/ProgressBarScreen.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ export default class ProgressBarScreen extends Component {
4141

4242
return (
4343
<ScrollView>
44-
<View flex bg-grey80 spread paddingV-18>
44+
<View flex bg-$backgroundNeutralLight spread paddingV-18>
4545
<View paddingL-18 marginB-18>
46-
<Text text40 grey10>
46+
<Text $textDefault text40>
4747
ProgressBar
4848
</Text>
4949
</View>
5050

51-
<Text text70 style={styles.text}>
51+
<Text $textDefault text70 style={styles.text}>
5252
Default
5353
</Text>
5454
<ProgressBar
5555
progress={progresses[0]}
5656
style={styles.progressBar}
5757
/>
5858

59-
<Text text70 style={styles.text}>
59+
<Text $textDefault text70 style={styles.text}>
6060
FullWidth
6161
</Text>
6262
<ProgressBar
@@ -65,7 +65,7 @@ export default class ProgressBarScreen extends Component {
6565
fullWidth
6666
/>
6767

68-
<Text text70 style={styles.text}>
68+
<Text $textDefault text70 style={styles.text}>
6969
Styled
7070
</Text>
7171
<ProgressBar
@@ -74,7 +74,7 @@ export default class ProgressBarScreen extends Component {
7474
progressColor={Colors.purple70}
7575
/>
7676

77-
<Text text70 style={styles.text}>
77+
<Text $textDefault text70 style={styles.text}>
7878
Custom Element
7979
</Text>
8080
<ProgressBar

src/components/progressBar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const CONTAINER_HEIGHT = Spacings.s2;
1010
const FULL_WIDTH_CONTAINER_HEIGHT = Spacings.s1;
1111
const TABLET_CONTAINER_HEIGHT = 6;
1212
const TABLET_FULL_WIDTH_CONTAINER_HEIGHT = 10;
13-
const DEFAULT_COLOR = Colors.primary;
13+
const DEFAULT_COLOR = Colors.$backgroundPrimaryHeavy;
1414

1515
/**
1616
* @description: Progress bar
@@ -166,7 +166,7 @@ export default asBaseComponent<ProgressBarProps, typeof ProgressBar>(ProgressBar
166166

167167
const styles = StyleSheet.create({
168168
container: {
169-
backgroundColor: Colors.grey60,
169+
backgroundColor: Colors.$backgroundNeutralMedium,
170170
overflow: 'hidden',
171171
borderRadius: BorderRadiuses.br100
172172
},

0 commit comments

Comments
 (0)