Skip to content

Commit 7be380a

Browse files
committed
Update skeleton input to be an input
1 parent 3d28d3c commit 7be380a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/button/button.directive.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class Button implements OnInit {
2424
/**
2525
* sets the button type
2626
*/
27-
@Input() ibmButton: "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger--primary" | "skeleton" = "primary";
27+
@Input() ibmButton: "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger--primary" = "primary";
2828
/**
2929
* Specify the size of the button
3030
*/
@@ -37,7 +37,7 @@ export class Button implements OnInit {
3737
@HostBinding("class.bx--btn--ghost") ghost = false;
3838
@HostBinding("class.bx--btn--danger") danger = false;
3939
@HostBinding("class.bx--btn--danger--primary") dangerPrimary = false;
40-
@HostBinding("class.bx--skeleton") skeleton = false;
40+
@HostBinding("class.bx--skeleton") @Input() skeleton = false;
4141
@HostBinding("class.bx--btn--sm") smallSize = false;
4242

4343
ngOnInit() {
@@ -52,7 +52,6 @@ export class Button implements OnInit {
5252
case "ghost": this.ghost = true; break;
5353
case "danger": this.danger = true; break;
5454
case "danger--primary": this.dangerPrimary = true; break;
55-
case "skeleton": this.skeleton = true; break;
5655
default: this.primary = true; break;
5756
}
5857
}

src/button/button.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ storiesOf("Button", module)
3232
}))
3333
.add("Skeleton", () => ({
3434
template: `
35-
<button ibmButton="skeleton" [size]="size"></button>
35+
<button ibmButton="primary" skeleton="true" [size]="size"></button>
3636
`,
3737
props: {
3838
size: select("Size of the buttons", ["normal", "sm"], "normal")

0 commit comments

Comments
 (0)