From 904f8ed447bc239e828d289ba306c244538ee9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Wed, 8 Jul 2026 16:32:55 +0300 Subject: [PATCH] Select komponenti dark mod --- ui/src/assets/styles/components/_select.css | 8 ++++---- ui/src/components/ui/Select/Select.tsx | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/src/assets/styles/components/_select.css b/ui/src/assets/styles/components/_select.css index 9874c9f..94e3e3d 100644 --- a/ui/src/assets/styles/components/_select.css +++ b/ui/src/assets/styles/components/_select.css @@ -1,6 +1,6 @@ .select { .select__placeholder { - @apply text-gray-400; + @apply text-gray-400 dark:text-gray-300; } .select__multi-value { @@ -40,7 +40,7 @@ } .select__control { - @apply dark:bg-transparent h-auto; + @apply dark:bg-transparent dark:text-white h-auto; &.hide-single-value { .select__single-value { @@ -63,11 +63,11 @@ } .select__menu { - @apply bg-white dark:bg-gray-700 dark:shadow-2xl; + @apply bg-white dark:bg-gray-700 dark:text-white dark:shadow-2xl; } .select-option { - @apply flex items-center justify-between px-2 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-600 cursor-default; + @apply flex items-center justify-between px-2 py-1.5 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600 cursor-default; &.selected { @apply bg-gray-100 dark:bg-gray-500; diff --git a/ui/src/components/ui/Select/Select.tsx b/ui/src/components/ui/Select/Select.tsx index 3b4e496..d857db5 100644 --- a/ui/src/components/ui/Select/Select.tsx +++ b/ui/src/components/ui/Select/Select.tsx @@ -257,7 +257,10 @@ function _Select< mode === 'dark' ? twColor.gray['600'] : twColor.gray['300'], - neutral80: twColor.gray['700'], + neutral80: + mode === 'dark' + ? (TW_COLORS as any).white + : twColor.gray['700'], neutral10: mode === 'dark' ? twColor.gray['600']