Make LabelButtons support active notion

This commit is contained in:
Henrik Giesel 2021-05-06 20:48:11 +02:00
parent 0f4d4eb5a9
commit 193e2f9e60

View File

@ -12,7 +12,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
let className: string = "";
export { className as class };
export let tooltip: string | undefined;
export let tooltip: string | undefined = undefined;
export let active = false;
export let disables = true;
export let tabbable = false;
@ -48,6 +49,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
bind:this={buttonRef}
{id}
class={`btn ${className}`}
class:active
class:dropdown-toggle={dropdownProps.dropdown}
class:btn-day={!nightMode}
class:btn-night={nightMode}