From 170dcc2a434ae113d4b21f2832921b16ead937ee Mon Sep 17 00:00:00 2001 From: MangoSwirl Date: Sun, 23 Jun 2024 12:34:17 -0700 Subject: [PATCH] Fix icon in checkbox --- .../+page.svelte | 186 +++++++++--------- .../quizzes/safety-quiz/+page.svelte | 186 +++++++++--------- src/routes/tools/people/AddPersonForm.svelte | 113 +++++------ .../tools/people/[id]/ProfileCard.svelte | 6 +- 4 files changed, 257 insertions(+), 234 deletions(-) diff --git a/src/routes/tools/lab-certification/quizzes/lab-layout-emergency-preparedness/+page.svelte b/src/routes/tools/lab-certification/quizzes/lab-layout-emergency-preparedness/+page.svelte index 1705ac1..89e0909 100644 --- a/src/routes/tools/lab-certification/quizzes/lab-layout-emergency-preparedness/+page.svelte +++ b/src/routes/tools/lab-certification/quizzes/lab-layout-emergency-preparedness/+page.svelte @@ -1,104 +1,108 @@ - Lab Layout/Emergency Preparedness Quiz + Lab Layout/Emergency Preparedness Quiz
-

Lab Layout/Emergency Preparedness Quiz

-
loading = true}> - {#if !$page.data.session?.user} -
- - -
- {/if} - - {#each data.questions as question} -
- {#if question.type === QuestionType.SINGLE_SELECT} - - - -
- {/each} -
- {/if} - - {/each} - -
- -
- +

Lab Layout/Emergency Preparedness Quiz

+
(loading = true)}> + {#if !$page.data.session?.user} +
+ + +
+ {/if} + + {#each data.questions as question} +
+ {#if question.type === QuestionType.SINGLE_SELECT} + + + +
+ {/each} + + {/if} + + {/each} + +
+ +
+
diff --git a/src/routes/tools/lab-certification/quizzes/safety-quiz/+page.svelte b/src/routes/tools/lab-certification/quizzes/safety-quiz/+page.svelte index aa2dcf6..2c9d9f1 100644 --- a/src/routes/tools/lab-certification/quizzes/safety-quiz/+page.svelte +++ b/src/routes/tools/lab-certification/quizzes/safety-quiz/+page.svelte @@ -1,104 +1,108 @@ - Safety Quiz + Safety Quiz
-

Safety Quiz

-
loading = true}> - {#if !$page.data.session?.user} -
- - -
- {/if} - - {#each data.questions as question} -
- {#if question.type === QuestionType.SINGLE_SELECT} - - - -
- {/each} -
- {/if} - - {/each} - -
- -
- +

Safety Quiz

+
(loading = true)}> + {#if !$page.data.session?.user} +
+ + +
+ {/if} + + {#each data.questions as question} +
+ {#if question.type === QuestionType.SINGLE_SELECT} + + + +
+ {/each} + + {/if} + + {/each} + +
+ +
+
diff --git a/src/routes/tools/people/AddPersonForm.svelte b/src/routes/tools/people/AddPersonForm.svelte index 4d2d447..64e19d0 100644 --- a/src/routes/tools/people/AddPersonForm.svelte +++ b/src/routes/tools/people/AddPersonForm.svelte @@ -7,65 +7,65 @@ import { Button, Dialog, TextField, Select } from 'magnolia-ui-svelte'; import { createEventDispatcher } from 'svelte'; - export let showCancel = false; + export let showCancel = false; - const dispatch = createEventDispatcher(); + const dispatch = createEventDispatcher(); - function onSuccess() { - dispatch('success'); - } + function onSuccess() { + dispatch('success'); + } - function onCancel() { - dispatch('cancel'); - } + function onCancel() { + dispatch('cancel'); + }

Add a person

-
{ - console.log('ay') - return async ({ result, update }) => { - if (result.type === 'success') { - onSuccess(); - } - - update(); - }; - }} - > - - - - - - - - -
- {#if showCancel} - - {/if} - -
- +
{ + console.log('ay'); + return async ({ result, update }) => { + if (result.type === 'success') { + onSuccess(); + } + + update(); + }; + }} +> + + + + + + + + +
+ {#if showCancel} + + {/if} + +
+ - diff --git a/src/routes/tools/people/[id]/ProfileCard.svelte b/src/routes/tools/people/[id]/ProfileCard.svelte index 0d9dab8..f70fe0b 100644 --- a/src/routes/tools/people/[id]/ProfileCard.svelte +++ b/src/routes/tools/people/[id]/ProfileCard.svelte @@ -222,7 +222,7 @@ input[type='checkbox']:checked::after { content: 'check'; color: var(--secondary-container); - font-family: 'Material Symbols Rounded'; + font-family: 'Material Symbols Rounded Reduced'; font-variation-settings: 'opsz' 22, 'GRAD' 100; font-size: 22px; @@ -232,6 +232,10 @@ transform: translate(-50%, -50%) scaleX(0.8); } + :global(.fullIconsWillLoad) input[type='checkbox']:checked::after { + font-family: 'Material Symbols Rounded Full'; + } + .error { color: var(--danger); margin-top: 14px;