Skip to content

Commit 50ee441

Browse files
authored
fix[button]: Merge pull request #136 from scarraway/master
Fix button overwriting class attribute. Fixes #89
2 parents eabbe09 + 15116b0 commit 50ee441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/button/button.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class Button implements OnInit {
3030
*/
3131
@Input() size: "normal" | "sm" = "normal";
3232
// a whole lot of HostBindings ... this way we don't have to touch the elementRef directly
33-
@HostBinding("class") btnClass = "bx--btn";
33+
@HostBinding("class.bx--btn") baseClass = true;
3434
@HostBinding("class.bx--btn--primary") primary = true;
3535
@HostBinding("class.bx--btn--secondary") secondary = false;
3636
@HostBinding("class.bx--btn--tertiary") tertiary = false;

0 commit comments

Comments
 (0)