File tree Expand file tree Collapse file tree
packages/ui/src/components/wui-icon Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { TemplateResult } from 'lit'
22import { LitElement } from 'lit'
33import { property } from 'lit/decorators.js'
4+ import { ifDefined } from 'lit/directives/if-defined.js'
45import { html , unsafeStatic } from 'lit/static-html.js'
56
67import { appStoreSvg } from '../../assets/svg/app-store.js'
@@ -298,7 +299,7 @@ export class WuiIcon extends LitElement {
298299
299300 // Return the Phosphor icon with dynamic tag
300301 // eslint-disable-next-line lit/binding-positions, lit/no-invalid-html
301- return html `< ${ tag } size =${ getPhosphorSize [ this . size ] } weight="${ this . weight } "> </ ${ tag } > `
302+ return html `< ${ tag } size =${ ifDefined ( getPhosphorSize [ this . size ] ) } weight="${ this . weight } "> </ ${ tag } > `
302303 }
303304
304305 // Fallback to regular SVG
You can’t perform that action at this time.
0 commit comments