Merge pull request #1241 from umbraco/chore/umb-table-icon

`umb-table` fix issue with `icon`
This commit is contained in:
Lee Kelleher
2024-02-20 07:32:03 +00:00
committed by GitHub

View File

@@ -219,7 +219,7 @@ export class UmbTableElement extends LitElement {
if (this.config.hideIcon && !this.config.allowSelection) return;
return html`<uui-table-cell>
${when(!this.config.hideIcon, () => html`<uui-icon name=${ifDefined(item.icon)}></uui-icon>`)}
${when(!this.config.hideIcon, () => html`<uui-icon name=${ifDefined(item.icon ?? undefined)}></uui-icon>`)}
${when(
this.config.allowSelection,
() =>
@@ -311,6 +311,10 @@ export class UmbTableElement extends LitElement {
justify-content: space-between;
width: 100%;
}
uui-table-cell uui-icon {
vertical-align: top;
}
`,
];
}