<button
    mat-flat-button
    [class]="backgroundColor+' '+ (disabled ? '' : textColor)"
    [color]="backgroundColor"
    [disabled]="disabled"
    *ngIf="!resourcesService.onResize()">
    <mat-icon>{{icon}}</mat-icon> {{ nameButton }}
</button>

<button
    mat-mini-fab
    class="override_no_shadow"
    [class]="backgroundColor+' '+textColor"
    [color]="backgroundColor"
    [disabled]="disabled"
    *ngIf="resourcesService.onResize()"
    [matTooltip]="nameButton">
    <mat-icon>{{icon}}</mat-icon>
</button>