Skip to content

Commit 1df8fce

Browse files
author
Andrew Nelson
committed
fix(progress-indicator): changes attribute to orientation
1 parent bf08c95 commit 1df8fce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/progress-indicator/progress-indicator.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ExperimentalService } from "./../experimental.module";
1010
class="bx--progress"
1111
[ngClass]="{
1212
'bx--skeleton': skeleton,
13-
'bx--progress--vertical': vertical
13+
'bx--progress--vertical': (orientation === 'vertical')
1414
}">
1515
<li
1616
class="bx--progress-step bx--progress-step--{{step.state}}"
@@ -60,7 +60,7 @@ export class ProgressIndicator {
6060
}
6161

6262
@Input() steps = [];
63-
@Input() vertical = false;
63+
@Input() orientation: "horizontal" | "vertical" = "horizontal";
6464
@Input() skeleton = false;
6565

6666
get isExperimental() {

src/progress-indicator/progress-indicator.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ storiesOf("ProgressIndicator", module)
8686
.add("Vertical", () => ({
8787
template: `
8888
<app-experimental-component></app-experimental-component>
89-
<ibm-progress-indicator [vertical]="true" [steps]="steps"></ibm-progress-indicator>
89+
<ibm-progress-indicator [orientation]="'vertical'" [steps]="steps"></ibm-progress-indicator>
9090
`,
9191
props: {
9292
steps : [

0 commit comments

Comments
 (0)