Skip to content

Commit 036f107

Browse files
authored
Wizard - add circleBackgroundColor (#1148)
1 parent 228e9d9 commit 036f107

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/wizard/WizardStep.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ export default class WizardStep extends PureBaseComponent {
5151
* The step's circle size (diameter)
5252
*/
5353
circleSize: PropTypes.number,
54+
/**
55+
* Circle's background color
56+
*/
57+
circleBackgroundColor: PropTypes.string,
5458
/**
5559
* Icon to replace the (default) index
5660
*/
@@ -94,6 +98,7 @@ export default class WizardStep extends PureBaseComponent {
9498
circleSize,
9599
color,
96100
circleColor = color,
101+
circleBackgroundColor,
97102
icon,
98103
enabled
99104
} = props;
@@ -102,7 +107,11 @@ export default class WizardStep extends PureBaseComponent {
102107
return (
103108
<TouchableOpacity
104109
testID={`${testID}.circle`}
105-
style={[styles.circle, circleSize && {width: circleSize, height: circleSize}, {borderColor: circleColor}]}
110+
style={[
111+
styles.circle,
112+
circleSize && {width: circleSize, height: circleSize},
113+
{borderColor: circleColor, backgroundColor: circleBackgroundColor}
114+
]}
106115
onPress={enabled ? onPress : undefined}
107116
hitSlop={{top: hitSlopSize, bottom: hitSlopSize, left: hitSlopSize, right: hitSlopSize}}
108117
disabled={!enabled}

0 commit comments

Comments
 (0)