Skip to content

Commit

Permalink
fix(progress-indicator): changes attribute to orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Nelson committed Feb 12, 2019
1 parent bf08c95 commit 1df8fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/progress-indicator/progress-indicator.component.ts
Expand Up @@ -10,7 +10,7 @@ import { ExperimentalService } from "./../experimental.module";
class="bx--progress"
[ngClass]="{
'bx--skeleton': skeleton,
'bx--progress--vertical': vertical
'bx--progress--vertical': (orientation === 'vertical')
}">
<li
class="bx--progress-step bx--progress-step--{{step.state}}"
Expand Down Expand Up @@ -60,7 +60,7 @@ export class ProgressIndicator {
}

@Input() steps = [];
@Input() vertical = false;
@Input() orientation: "horizontal" | "vertical" = "horizontal";
@Input() skeleton = false;

get isExperimental() {
Expand Down
2 changes: 1 addition & 1 deletion src/progress-indicator/progress-indicator.stories.ts
Expand Up @@ -86,7 +86,7 @@ storiesOf("ProgressIndicator", module)
.add("Vertical", () => ({
template: `
<app-experimental-component></app-experimental-component>
<ibm-progress-indicator [vertical]="true" [steps]="steps"></ibm-progress-indicator>
<ibm-progress-indicator [orientation]="'vertical'" [steps]="steps"></ibm-progress-indicator>
`,
props: {
steps : [
Expand Down

0 comments on commit 1df8fce

Please sign in to comment.