mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Make LabelButtons support active notion
This commit is contained in:
parent
0f4d4eb5a9
commit
193e2f9e60
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
let className: string = "";
|
let className: string = "";
|
||||||
export { className as class };
|
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 disables = true;
|
||||||
export let tabbable = false;
|
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}
|
bind:this={buttonRef}
|
||||||
{id}
|
{id}
|
||||||
class={`btn ${className}`}
|
class={`btn ${className}`}
|
||||||
|
class:active
|
||||||
class:dropdown-toggle={dropdownProps.dropdown}
|
class:dropdown-toggle={dropdownProps.dropdown}
|
||||||
class:btn-day={!nightMode}
|
class:btn-day={!nightMode}
|
||||||
class:btn-night={nightMode}
|
class:btn-night={nightMode}
|
||||||
|
|
Loading…
Reference in a new issue