Skip to content

Commit a6cbc7c

Browse files
committed
fix(tabs): change icon in WC demo to be igc-icon, instead of igx-icon
1 parent 2fa91b3 commit a6cbc7c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/app/tabs-showcase/tabs-showcase.sample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@for (contact of contacts; track contact.id) {
3333
<igc-tab [selected]="contact.id === selectedTabId">
3434
@if(!properties.hideIcon) {
35-
<igx-icon slot="label">folder</igx-icon>
35+
<igc-icon name="folder" slot="label"></igc-icon>
3636
}
3737
@if(!properties.hideText) {
3838
<span slot="label">{{ contact.text }}</span>

src/app/tabs-showcase/tabs-showcase.sample.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,20 @@ import {
2020
defineComponents,
2121
IgcTabsComponent,
2222
IgcTabComponent,
23+
IgcIconComponent,
24+
registerIconFromText
2325
} from 'igniteui-webcomponents';
2426
import {
2527
PropertyChangeService,
2628
Properties,
2729
} from '../properties-panel/property-change.service';
2830

29-
defineComponents(IgcTabsComponent, IgcTabComponent);
31+
defineComponents(IgcTabsComponent, IgcTabComponent, IgcIconComponent);
32+
33+
registerIconFromText(
34+
'folder',
35+
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Z"/></svg>'
36+
);
3037

3138
@Component({
3239
selector: 'app-tabs-showcase-sample',

0 commit comments

Comments
 (0)