1616 --contact-shadow-hover : rgba (0 , 0 , 0 , 0.3 );
1717 --contact-input-bg : rgba (255 , 255 , 255 , 0.05 );
1818 --contact-input-border : rgba (255 , 255 , 255 , 0.1 );
19+ --select-text-primary : # 000000 ;
1920}
2021
2122/* Light Theme Variables */
@@ -335,7 +336,7 @@ html[data-theme='light'] {
335336.form-textarea {
336337 width : 100% ;
337338 padding : 0.875rem 1rem ;
338- background : var (--contact-input-bg );
339+ background : var (--contact-input-bg ); /* Already defined, but ensure it's applied */
339340 border : 1px solid var (--contact-input-border );
340341 border-radius : 0.75rem ;
341342 color : var (--contact-text-primary );
@@ -345,13 +346,11 @@ html[data-theme='light'] {
345346 backdrop-filter : blur (5px );
346347}
347348
348- .form-input : focus ,
349- .form-select : focus ,
350- .form-textarea : focus {
351- outline : none;
352- border-color : var (--contact-accent-primary );
353- background : var (--contact-bg-card-hover );
354- box-shadow : 0 0 0 3px rgba (102 , 126 , 234 , 0.2 );
349+ /* Fix dropdown options visibility in dark mode */
350+ .form-select option {
351+ background : var (--contact-bg-card ); /* Matches card background */
352+ color : var (--select-text-primary ); /* Matches primary text color */
353+ padding : 0.5rem ; /* Optional: Adds padding for better readability */
355354}
356355
357356.form-input ::placeholder ,
@@ -369,18 +368,19 @@ html[data-theme='light'] {
369368 appearance : none;
370369 background-image : url ("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e" );
371370 background-position : right 0.75rem center;
372- background-repeat : no-repeat;
371+ background-repeat : no-repeat; /* Ensure it doesn't repeat */
373372 background-size : 1.25rem ;
374- padding-right : 2.5rem ;
375- }
376-
377- [data-theme = 'light' ] .form-select {
378- background-image : url ("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e" );
373+ padding-right : 2.5rem ; /* Enough space for the arrow */
379374}
380375
381- .form-select option {
382- background : var (--contact-bg-card );
383- color : var (--contact-text-primary );
376+ .form-select : focus {
377+ outline : none;
378+ border-color : var (--contact-accent-primary );
379+ background : var (--contact-bg-card-hover ); /* Consistent background on focus */
380+ box-shadow : 0 0 0 3px rgba (102 , 126 , 234 , 0.2 );
381+ background-image : url ("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e" ); /* Single arrow on focus */
382+ background-position : right 0.75rem center;
383+ background-repeat : no-repeat; /* Prevent repetition */
384384}
385385
386386.submit-button {
0 commit comments