@@ -22,7 +22,6 @@ export function Select({ options, value, onChange, placeholder, className }: Sel
2222 const selectedOption = options . find ( opt => opt . value === value ) ;
2323 const displayLabel = selectedOption ?. label || placeholder || 'Select...' ;
2424
25- // Close dropdown when clicking outside
2625 useEffect ( ( ) => {
2726 function handleClickOutside ( event : MouseEvent ) {
2827 if ( containerRef . current && ! containerRef . current . contains ( event . target as Node ) ) {
@@ -43,17 +42,10 @@ export function Select({ options, value, onChange, placeholder, className }: Sel
4342
4443 return (
4544 < div ref = { containerRef } className = { cn ( 'relative' , className ) } >
46- { /* Button */ }
4745 < button
4846 onClick = { ( ) => setIsOpen ( ! isOpen ) }
49- className = { cn (
50- 'flex h-10 w-full items-center justify-between rounded-md border border-gray-300 bg-white px-3 py-2 text-sm' ,
51- 'text-gray-900 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent' ,
52- 'disabled:cursor-not-allowed disabled:opacity-50' ,
53- 'dark:border-secondary-500/30 dark:bg-slate-800 dark:text-slate-100 dark:placeholder:text-slate-500' ,
54- 'dark:focus:ring-primary-500 dark:focus:border-primary-500/50 dark:shadow-lg dark:shadow-primary-500/10' ,
55- 'transition-colors'
56- ) }
47+ className = "flex h-10 w-full items-center justify-between rounded-hds-sm bg-white px-3 py-2 text-sm text-neutral-700 transition-colors disabled:cursor-not-allowed disabled:opacity-50"
48+ style = { { border : '1px solid #e2e8f0' } }
5749 >
5850 < span > { displayLabel } </ span >
5951 < ChevronDown
@@ -64,13 +56,11 @@ export function Select({ options, value, onChange, placeholder, className }: Sel
6456 />
6557 </ button >
6658
67- { /* Dropdown */ }
6859 { isOpen && (
69- < div className = { cn (
70- 'absolute top-full left-0 right-0 mt-2 z-50' ,
71- 'rounded-md border border-gray-200 bg-white shadow-lg' ,
72- 'dark:border-secondary-500/30 dark:bg-slate-800 dark:shadow-lg dark:shadow-secondary-500/10'
73- ) } >
60+ < div
61+ className = "absolute top-full left-0 right-0 mt-1 z-50 rounded-hds-md bg-white"
62+ style = { { boxShadow : '0 0 0 1px #e2e8f040, 0 4px 6px 0 #47556920, 0 12px 24px 0 #47556930' } }
63+ >
7464 < ul className = "py-1" >
7565 { options . map ( ( option ) => (
7666 < li key = { option . value } >
@@ -79,8 +69,8 @@ export function Select({ options, value, onChange, placeholder, className }: Sel
7969 className = { cn (
8070 'w-full text-left px-3 py-2 text-sm transition-colors' ,
8171 value === option . value
82- ? 'bg-primary-500 text-white dark:bg-primary-600 dark:text-slate-100 '
83- : 'text-gray-900 hover:bg-gray -100 dark:text-slate-100 dark:hover:bg-slate-700 '
72+ ? 'bg-action-200 text-white'
73+ : 'text-neutral-700 hover:bg-neutral -100'
8474 ) }
8575 >
8676 { option . label }
0 commit comments