Complete questionnaire builder

This commit is contained in:
rotimi-best
2021-06-26 21:32:42 +03:00
parent deb445b694
commit 445858f4bb
14 changed files with 269 additions and 254 deletions
+6 -1
View File
@@ -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>