Skip to content

Commit 2edf6f6

Browse files
committed
remove activestep from component
1 parent 63c4499 commit 2edf6f6

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

components/progress-indicator/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ const defaultSteps = [
116116

117117
const defaultProps = {
118118
assistiveText: {
119-
activeStep: '',
120119
completedStep: 'Completed',
121120
disabledStep: 'Disabled',
122121
errorStep: 'Error',

components/progress-indicator/private/step.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ const propTypes = {
2222
/**
2323
* **Assistive text for accessibility**
2424
* This object is merged with the default props object on every render.
25-
* * `activeStep`: Label for the active step. The default is `Active Step`
2625
* * `completedStep`: Label for a completed step. The default is `Completed Step`
2726
* * `disabledStep`: Label for disabled step. The default is `Disabled Step`
2827
* * `errorStep`: Label for a step with an error. The default is `Error Step`
2928
* * `percentage`: Label for Progress Bar. The default is `Progress: [this.props.value]%`. You will need to calculate the percentage yourself if changing this string.
3029
* * `step`: Label for a step. It will be typically followed by the number of the step such as "Step 1".
3130
*/
3231
assistiveText: PropTypes.shape({
33-
activeStep: PropTypes.string,
3432
completedStep: PropTypes.string,
3533
disabledStep: PropTypes.string,
3634
percentage: PropTypes.string,
@@ -165,8 +163,6 @@ class Step extends React.Component {
165163
let status = '';
166164
if (this.props.isError) {
167165
status = this.props.assistiveText.errorStep;
168-
} else if (this.props.isSelected) {
169-
status = this.props.assistiveText.activeStep;
170166
} else if (this.props.isCompleted) {
171167
status = this.props.assistiveText.completedStep;
172168
} else if (this.props.isDisabled) {

0 commit comments

Comments
 (0)