@@ -24,13 +24,17 @@ export class Button implements OnInit {
2424 /**
2525 * sets the button type
2626 */
27- @Input ( ) ibmButton : "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger--primary" = "primary" ;
27+ @Input ( ) ibmButton : "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger--primary" | "toolbar-action" = "primary" ;
2828 /**
2929 * Specify the size of the button
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.bx--btn" ) baseClass = true ;
33+ @HostBinding ( "class.bx--btn" ) get baseClass ( ) {
34+ if ( ! this . toolbarAction ) {
35+ return true ;
36+ }
37+ }
3438 @HostBinding ( "class.bx--btn--primary" ) primary = true ;
3539 @HostBinding ( "class.bx--btn--secondary" ) secondary = false ;
3640 @HostBinding ( "class.bx--btn--tertiary" ) tertiary = false ;
@@ -39,6 +43,7 @@ export class Button implements OnInit {
3943 @HostBinding ( "class.bx--btn--danger--primary" ) dangerPrimary = false ;
4044 @HostBinding ( "class.bx--skeleton" ) @Input ( ) skeleton = false ;
4145 @HostBinding ( "class.bx--btn--sm" ) smallSize = false ;
46+ @HostBinding ( "class.bx--toolbar-action" ) toolbarAction = false ;
4247
4348 ngOnInit ( ) {
4449 if ( this . size === "sm" ) {
@@ -52,6 +57,7 @@ export class Button implements OnInit {
5257 case "ghost" : this . ghost = true ; break ;
5358 case "danger" : this . danger = true ; break ;
5459 case "danger--primary" : this . dangerPrimary = true ; break ;
60+ case "toolbar-action" : this . toolbarAction = true ; break ;
5561 default : this . primary = true ; break ;
5662 }
5763 }
0 commit comments