We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf43c05 commit b05b722Copy full SHA for b05b722
libs/ui/src/lib/icon/icon.component.ts
@@ -117,11 +117,11 @@ export class IconComponent implements OnChanges {
117
this.renderer.removeChild(this.el.nativeElement, isPreviousIcon);
118
}
119
const wrapper = this.renderer.createElement('span');
120
- [...this.iconVariantAndCategory, 'inline-flex', 'align-middle'].forEach(
121
- (classProp) => {
+ [...this.iconVariantAndCategory, 'inline-flex', 'align-middle']
+ .filter((classProp) => !!classProp)
122
+ .forEach((classProp) => {
123
this.renderer.addClass(wrapper, classProp);
- }
124
- );
+ });
125
this.renderer.appendChild(wrapper, i.node[0]);
126
if (wrapper) {
127
this.renderer.appendChild(this.el.nativeElement, wrapper);
0 commit comments