From 6e2b4b01dc68705ed3fe26297648d2b717b9fa41 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Thu, 27 Apr 2023 20:52:53 -0300 Subject: [PATCH] style(dropdownComponent): add dark mode support to dropdown component options and background color --- src/frontend/src/components/dropdownComponent/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/dropdownComponent/index.tsx b/src/frontend/src/components/dropdownComponent/index.tsx index aad367adb..bb4cd621c 100644 --- a/src/frontend/src/components/dropdownComponent/index.tsx +++ b/src/frontend/src/components/dropdownComponent/index.tsx @@ -41,14 +41,16 @@ export default function Dropdown({ leaveFrom="opacity-100" leaveTo="opacity-0" > - + {options.map((option, id) => ( classNames( - active ? "text-white bg-indigo-600" : "text-gray-900", - "relative cursor-default select-none py-2 pl-3 pr-9" + active + ? "text-white bg-indigo-600 dark:bg-indigo-500" + : "text-gray-900", + "relative cursor-default select-none py-2 pl-3 pr-9 dark:text-gray-300 dark:bg-gray-800" ) } value={option}