-
Notifications
You must be signed in to change notification settings - Fork 158
/
Copy pathevaluation.svelte
28 lines (27 loc) · 971 Bytes
/
evaluation.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script lang="ts">
export let value: number = null;
</script>
<fieldset class="u-margin-block-start-8 u-min-width-0">
<legend class="label is-required u-margin-0 u-line-height-1-5 u-bold">
<slot />
</legend>
<ol
class="u-flex u-main-space-between u-margin-block-start-16 u-overflow-x-auto"
style="padding-block: 0.13rem">
{#each Array(11) as _, i}
<li>
<input
on:click={() => (value = i)}
type="radio"
name="recommend"
class="radio-button"
data-text={i}
checked={value === i} />
</li>
{/each}
</ol>
<div class="u-flex u-main-space-between u-margin-block-start-8">
<span class:u-color-text-gray={value === null}>Not at all likely</span>
<span class:u-color-text-gray={value === null}>Extremely likely</span>
</div>
</fieldset>