From 95ad5e9d4ced61c2b8301ba10f14c2d5401cc2d0 Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Wed, 15 Nov 2023 20:23:29 -0500 Subject: [PATCH 1/2] fix: Fix on screen display color visibility in settings --- src/components/Settings/Settings.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Settings/Settings.tsx b/src/components/Settings/Settings.tsx index 8d7db0ac..43794a73 100644 --- a/src/components/Settings/Settings.tsx +++ b/src/components/Settings/Settings.tsx @@ -171,42 +171,42 @@ export default function Settings({ }); const colorOptions: SelectOption[] = [ { - element:
, + element:
, label: red, value: "red" }, { - element:
, + element:
, label: green, value: "green" }, { - element:
, + element:
, label: blue, value: "blue" }, { - element:
, + element:
, label: yellow, value: "yellow" }, { - element:
, + element:
, label: orange, value: "orange" }, { - element:
, + element:
, label: purple, value: "purple" }, { - element:
, + element:
, label: pink, value: "pink" }, { - element:
, + element:
, label: white, value: "white" } From 278149232e9fc34ef46bc9e9f56aa11fb24e9214 Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Wed, 15 Nov 2023 20:24:19 -0500 Subject: [PATCH 2/2] fix: Fix selected option text being white on light mode --- src/components/Inputs/Select/Select.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Inputs/Select/Select.tsx b/src/components/Inputs/Select/Select.tsx index 06631e13..011b9696 100644 --- a/src/components/Inputs/Select/Select.tsx +++ b/src/components/Inputs/Select/Select.tsx @@ -67,16 +67,20 @@ const Select: React.FC = ({ className, disabled, id, label, onChang {selectedOption ? ( options.find((option) => option.value === selectedOption)?.element ? (
- {options.find((option) => option.value === selectedOption)?.label} + + {options.find((option) => option.value === selectedOption)?.label} + {options.find((option) => option.value === selectedOption)?.element}
) : (
- {options.find((option) => option.value === selectedOption)?.label} + + {options.find((option) => option.value === selectedOption)?.label} +
) ) : ( - Select an option + Select an option )}