Skip to content

Commit 0e61869

Browse files
authored
fix(combo): update styles of igx-combo-add-item (#15272)
1 parent 924efea commit 0e61869

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

projects/igniteui-angular/src/lib/combo/combo-add-item.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IgxComboItemComponent } from './combo-item.component';
2-
import { Component } from '@angular/core';
2+
import { Component, HostBinding } from '@angular/core';
33

44
/**
55
* @hidden
@@ -8,9 +8,13 @@ import { Component } from '@angular/core';
88
selector: 'igx-combo-add-item',
99
template: '<ng-content></ng-content>',
1010
providers: [{ provide: IgxComboItemComponent, useExisting: IgxComboAddItemComponent }],
11-
standalone: true
1211
})
1312
export class IgxComboAddItemComponent extends IgxComboItemComponent {
13+
@HostBinding('class.igx-drop-down__item')
14+
public get isDropDownItem(): boolean {
15+
return false;
16+
}
17+
1418
public override get selected(): boolean {
1519
return false;
1620
}

projects/igniteui-angular/src/lib/core/styles/components/combo/_combo-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@
209209
%igx-combo__add-item {
210210
height: auto !important;
211211
background: var-get($theme, 'empty-list-background') !important;
212-
justify-content: center !important;
212+
justify-content: center;
213+
outline: none !important;
213214
}
214215

215216
%igx-combo__empty {

0 commit comments

Comments
 (0)