Reflect icon button props

pull/186/head
Cory LaViska 2020-08-16 11:24:43 -04:00
rodzic dab9b8a1f5
commit 2ffc1de1b6
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -17,16 +17,16 @@ export class IconButton {
button: HTMLButtonElement;
/** The name of the icon to draw. See the icon component for a full list of icons. */
@Prop() name: string;
@Prop({ reflect: true }) name: string;
/** An external URL of an SVG file. */
@Prop() src: string;
@Prop({ reflect: true }) src: string;
/** An alternative description to use for accessibility. If omitted, the name or src will be used to generate it. */
@Prop() label: string;
@Prop({ reflect: true }) label: string;
/** Set to true to disable the button. */
@Prop() disabled = false;
@Prop({ reflect: true }) disabled = false;
componentDidLoad() {
focusVisible.observe(this.button);