Skip to content

Commit 32e30c8

Browse files
Progress Indicator: Remove trailing - on step without status
1 parent e1e0fe2 commit 32e30c8

File tree

1 file changed

+4
-4
lines changed
  • components/progress-indicator/private

1 file changed

+4
-4
lines changed

components/progress-indicator/private/step.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Step extends React.Component {
132132
{this.props.step.assistiveText ||
133133
`${props.assistiveText.step} ${props.index + 1}: ${
134134
props.step.label
135-
} - ${status}`}
135+
} ${status}`}
136136
</span>
137137
</a>
138138
) : (
@@ -166,11 +166,11 @@ class Step extends React.Component {
166166
const renderIcon = this.props.isCompleted || this.props.isError;
167167
let status = '';
168168
if (this.props.isError) {
169-
status = this.props.assistiveText.errorStep;
169+
status = `- ${this.props.assistiveText.errorStep}`;
170170
} else if (this.props.isCompleted) {
171-
status = this.props.assistiveText.completedStep;
171+
status = `- ${this.props.assistiveText.completedStep}`;
172172
} else if (this.props.isDisabled) {
173-
status = this.props.assistiveText.disabledStep;
173+
status = `- ${this.props.assistiveText.disabledStep}`;
174174
}
175175

176176
const tooltipProps = {

0 commit comments

Comments
 (0)