From 2ee84b0b3e3ad9643e5bc2f089ec5369179f399d Mon Sep 17 00:00:00 2001 From: Oliver Sayers Date: Sun, 24 Sep 2023 01:24:14 +0100 Subject: [PATCH] Change to svg for x and check. iOS could not colour the check emoji --- src/__snapshots__/App.spec.ts.snap | 28 ++++++++++++++++++++++++++-- src/assets/icons/check.svelte | 14 ++++++++++++++ src/assets/icons/cross.svelte | 14 ++++++++++++++ src/components/keypad/index.svelte | 7 +++++-- 4 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 src/assets/icons/check.svelte create mode 100644 src/assets/icons/cross.svelte diff --git a/src/__snapshots__/App.spec.ts.snap b/src/__snapshots__/App.spec.ts.snap index 0db4ee5..f945e5d 100644 --- a/src/__snapshots__/App.spec.ts.snap +++ b/src/__snapshots__/App.spec.ts.snap @@ -50,7 +50,9 @@ exports[`should render without crashing 1`] = ` title="Help" > - ✘ + + + @@ -394,7 +416,9 @@ exports[`should render without crashing 1`] = ` > + + + diff --git a/src/assets/icons/cross.svelte b/src/assets/icons/cross.svelte new file mode 100644 index 0000000..203157a --- /dev/null +++ b/src/assets/icons/cross.svelte @@ -0,0 +1,14 @@ + + + + diff --git a/src/components/keypad/index.svelte b/src/components/keypad/index.svelte index e708fdb..7db247c 100644 --- a/src/components/keypad/index.svelte +++ b/src/components/keypad/index.svelte @@ -2,6 +2,9 @@ import { onMount } from 'svelte'; import { writable } from 'svelte/store'; + import CheckIcon from '../../assets/icons/check.svelte'; + import CrossIcon from '../../assets/icons/cross.svelte'; + // https://i.imgur.com/NKHNmfr.png // https://codepen.io/noleli/pen/abbeWRL // https://www.reddit.com/r/paydaytheheist/comments/15jvvpq/payday_3_beta_vault_code_generator_from/ @@ -175,11 +178,11 @@