diff --git a/src/ui/design-system/src/lib/Components/Dropdown/index.tsx b/src/ui/design-system/src/lib/Components/Dropdown/index.tsx index f542bd9a20..ef331bb326 100644 --- a/src/ui/design-system/src/lib/Components/Dropdown/index.tsx +++ b/src/ui/design-system/src/lib/Components/Dropdown/index.tsx @@ -6,13 +6,16 @@ const BASE_CLASSES = 'inline-flex items-center justify-center font-semibold text-center border transition duration-200 cursor-pointer'; const VARIANTS = { - black: 'bg-black text-white hover:bg-gray-800 active:bg-gray-900', - white: 'bg-white text-black border border-gray-300 hover:bg-gray-100 active:bg-gray-200', + black: ` + bg-black text-white border-transparent hover:bg-gray-800 active:bg-gray-900 + dark:bg-white dark:text-black dark:hover:bg-gray-200 dark:active:bg-gray-300 + `, + menu: ` + bg-black text-white border border-gray-700 shadow-lg hover:bg-gray-800 + dark:bg-white dark:text-black dark:border-gray-300 dark:hover:bg-gray-200 + `, }; -const MENU_CLASSES = - 'text-white bg-gray-900 border border-gray-600 shadow-lg dark:shadow-gray-800 hover:bg-gray-700 transition duration-200'; - export interface DropdownItem { label: string; onClick: () => void; @@ -21,15 +24,14 @@ export interface DropdownItem { interface DropdownProps { buttonLabel: string; items: DropdownItem[]; - buttonVariant?: 'black' | 'white'; } -const Dropdown: React.FC = ({ buttonLabel, items, buttonVariant = 'black' }) => { +const Dropdown: React.FC = ({ buttonLabel, items }) => { return ( {/* Button */} {buttonLabel} @@ -38,7 +40,6 @@ const Dropdown: React.FC = ({ buttonLabel, items, buttonVariant = {items.map((item, index) => ( @@ -46,9 +47,10 @@ const Dropdown: React.FC = ({ buttonLabel, items, buttonVariant =