Skip to content

Commit

Permalink
Visual updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BenM-BenM committed Mar 8, 2024
1 parent e8499b2 commit e9dc940
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/lib/components/FormFlow/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@

<div class="mt-5"></div>
{/each}
<button on:click={() => submitResponse()} disabled={$errors[$response]}>Submit</button>
<button on:click={() => deleteResponse()}>Delete</button>
<button
class="rounded-md p-2 shadow-sm border-2 bg-error/50 border-error hover:bg-error/40 text-text/80"
on:click={() => submitResponse()} disabled={$errors[$response]}
>Submit</button>
<button
on:click={() => deleteResponse()}
class="rounded-md p-2 shadow-sm border-2 bg-success/50 border-success hover:bg-success/40 text-text/80 disabled:bg-success/10 disabled:border-success/20"
>Delete</button>
</div>
{/if}
3 changes: 0 additions & 3 deletions src/lib/components/FormsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
disabled={$errors[response.id]}
on:click={() => submitResponse(response.id)}>✔ Submit</button
>
{#if $errors[response.id]}
<p>has errors</p>
{/if}
</span>
</li>
{/each}
Expand Down

0 comments on commit e9dc940

Please sign in to comment.