From 240db01e7503a782a04ae2072e0e68c482233f63 Mon Sep 17 00:00:00 2001 From: Buni48 <37407974+Buni48@users.noreply.github.com> Date: Mon, 2 May 2022 22:26:37 +0200 Subject: [PATCH] reflecting name and library in sl-icon (#742) --- src/components/icon/icon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/icon/icon.ts b/src/components/icon/icon.ts index 3abd65a70..5f80f4ca2 100644 --- a/src/components/icon/icon.ts +++ b/src/components/icon/icon.ts @@ -26,7 +26,7 @@ export default class SlIcon extends LitElement { @state() private svg = ''; /** The name of the icon to draw. */ - @property() name?: string; + @property({ reflect: true }) name?: string; /** * An external URL of an SVG file. @@ -39,7 +39,7 @@ export default class SlIcon extends LitElement { @property() label = ''; /** The name of a registered custom icon library. */ - @property() library = 'default'; + @property({ reflect: true }) library = 'default'; connectedCallback() { super.connectedCallback();