Skip to content

Commit f2f2585

Browse files
committed
fix(igx-combo): make add item a flat button #1260
1 parent a6974c3 commit f2f2585

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/igniteui-angular/src/lib/combo/combo.component.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<span>The list is empty</span>
99
</ng-template>
1010
<ng-template #addItemDefault let-control>
11-
Add item to collection
12-
<igx-icon fontSet="material" name="add_box" (click)="control.addItemToCollection()"></igx-icon>
11+
<button igxButton="flat" igxRipple>Add item</button>
1312
</ng-template>
1413
<ng-template #headerItemBase let-item let-key="valueKey" let-groupKey="groupKey">
1514
{{ item[key] }}
@@ -61,7 +60,7 @@
6160
</ng-container>
6261
</div>
6362
<igx-combo-item *ngIf="isAddButtonVisible()" [tabindex]="dropdown.collapsed ? -1 : customValueFlag ? 1 : -1" class="igx-combo__add"
64-
igxRipple (keypress)="addItemToCollection()" [isHeader]="false" [disabled]="false" [itemData]="'ADD ITEM'" role="button"
63+
igxRipple (click)="addItemToCollection()" (keypress)="addItemToCollection()" [isHeader]="false" [disabled]="false" [itemData]="'ADD ITEM'" role="button"
6564
aria-label="Add Item">
6665
<ng-container *ngTemplateOutlet="addItemTemplate ? addItemTemplate : addItemDefault; context: {$impicit: this}">
6766
</ng-container>

0 commit comments

Comments
 (0)