Skip to content

Commit 8fa6fd8

Browse files
committed
Fix "hidden" input on darkmode non selected input fields
1 parent 5b98a50 commit 8fa6fd8

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

main/style.css

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -728,22 +728,34 @@ ul.dropdown li:hover {
728728
#parts table input[type="number"] {
729729
background-color: transparent;
730730
border: none;
731-
color: #404247;
731+
color: var(--text-primary);
732732
padding: 0.2em 0.3em;
733733
font-size: 1em;
734734
}
735735

736736
#parts table input[type="text"]:focus,
737737
#parts table input[type="number"]:focus {
738-
background-color: #fff;
738+
background-color: var(--bg-secondary);
739+
color: var(--text-primary);
739740
}
740741

741-
#parts table input[type="text"] {
742-
width: 7em;
742+
/* Fix for dark mode input visibility in non-active rows */
743+
body.dark-mode #parts table tbody tr:not(.active) td input[type="text"],
744+
body.dark-mode #parts table tbody tr:not(.active) td input[type="number"] {
745+
color: var(--text-primary);
743746
}
744747

745-
#parts table input[type="number"] {
746-
width: 2.5em;
748+
body.dark-mode #parts table tbody tr.active td input {
749+
color: #fff;
750+
}
751+
752+
/* Improved focus styles for both active and non-active rows in dark mode */
753+
body.dark-mode #parts table tbody tr td input[type="text"]:focus,
754+
body.dark-mode #parts table tbody tr td input[type="number"]:focus {
755+
background-color: var(--input-bg);
756+
color: var(--text-primary);
757+
border: 1px solid var(--button-primary);
758+
outline: none;
747759
}
748760

749761
/* parts table svg */

0 commit comments

Comments
 (0)