From f5e416beeb4e7f6984ff58a722b8a8b8cfdd1db8 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Tue, 15 Sep 2026 20:02:10 +0900 Subject: [PATCH] fix: keep text dark on form controls given a white background sanitize.css forms.css makes form controls inherit the text color, so the rules that put them back on white left white text wherever the surrounding panel sets it, as in the nimgsearch search panel and the open.neuroinf.jp advanced search. - set the text to black next to each white control background, matching how the browser drew the controls before sanitize.css --- src/common/assets/theme/style.css | 1 + src/database/Database.module.css | 1 + src/database/blocks/IndexTree.module.css | 1 + 3 files changed, 3 insertions(+) diff --git a/src/common/assets/theme/style.css b/src/common/assets/theme/style.css index f170567..da0c8af 100644 --- a/src/common/assets/theme/style.css +++ b/src/common/assets/theme/style.css @@ -317,4 +317,5 @@ ul.mainmenu { selector on white. */ .leftcolumn .blockContent select { background-color: #ffffff; + color: #000000; } diff --git a/src/database/Database.module.css b/src/database/Database.module.css index 9591694..1e571f7 100644 --- a/src/database/Database.module.css +++ b/src/database/Database.module.css @@ -77,4 +77,5 @@ .database :global(.fieldDate input), .database :global(.listTable select) { background-color: #ffffff; + color: #000000; } diff --git a/src/database/blocks/IndexTree.module.css b/src/database/blocks/IndexTree.module.css index 7cd838d..8bebe62 100644 --- a/src/database/blocks/IndexTree.module.css +++ b/src/database/blocks/IndexTree.module.css @@ -18,6 +18,7 @@ margin: 3px 3px 10px; /* sanitize.css forms.css leaves buttons transparent */ background-color: #ffffff; + color: #000000; } .indexTree div span {