Complete questionnaire builder
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
export let onClick;
|
||||
export let disabled = false;
|
||||
export let selected = false;
|
||||
export let contained = false;
|
||||
export let value;
|
||||
export let toolTipProps = {
|
||||
title: "",
|
||||
@@ -16,7 +17,7 @@
|
||||
|
||||
<ToolTip title={toolTipProps.title} hotkeys={toolTipProps.hotkeys}>
|
||||
<button
|
||||
class={`root ${selected && "active"}`}
|
||||
class="root {selected && 'active'} {contained && 'contained'}"
|
||||
{disabled}
|
||||
on:click={handleClick}
|
||||
>
|
||||
@@ -49,4 +50,8 @@
|
||||
background-color: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
}
|
||||
|
||||
.contained {
|
||||
background-color: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user