16
16
--contact-shadow-hover : rgba (0 , 0 , 0 , 0.3 );
17
17
--contact-input-bg : rgba (255 , 255 , 255 , 0.05 );
18
18
--contact-input-border : rgba (255 , 255 , 255 , 0.1 );
19
+ --select-text-primary : # 000000 ;
19
20
}
20
21
21
22
/* Light Theme Variables */
@@ -335,7 +336,7 @@ html[data-theme='light'] {
335
336
.form-textarea {
336
337
width : 100% ;
337
338
padding : 0.875rem 1rem ;
338
- background : var (--contact-input-bg );
339
+ background : var (--contact-input-bg ); /* Already defined, but ensure it's applied */
339
340
border : 1px solid var (--contact-input-border );
340
341
border-radius : 0.75rem ;
341
342
color : var (--contact-text-primary );
@@ -345,13 +346,11 @@ html[data-theme='light'] {
345
346
backdrop-filter : blur (5px );
346
347
}
347
348
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 */
355
354
}
356
355
357
356
.form-input ::placeholder ,
@@ -369,18 +368,19 @@ html[data-theme='light'] {
369
368
appearance : none;
370
369
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" );
371
370
background-position : right 0.75rem center;
372
- background-repeat : no-repeat;
371
+ background-repeat : no-repeat; /* Ensure it doesn't repeat */
373
372
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 */
379
374
}
380
375
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 */
384
384
}
385
385
386
386
.submit-button {
0 commit comments