From 1fcc231eff5964c0a53a1ef66d96a1c7d410c71c Mon Sep 17 00:00:00 2001 From: devmrko Date: Wed, 22 Jul 2026 20:53:02 +0900 Subject: [PATCH] refs #703: fix dark mode expander contrast --- .../src/agent_console/presentation.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/poc4_active_source_20260714/src/agent_console/presentation.py b/poc4_active_source_20260714/src/agent_console/presentation.py index a387a50..3400ce7 100644 --- a/poc4_active_source_20260714/src/agent_console/presentation.py +++ b/poc4_active_source_20260714/src/agent_console/presentation.py @@ -56,6 +56,13 @@ def apply_console_theme(st: Any, profile: AppProfile) -> None: div[data-testid="stChatMessage"] [data-testid="stCaptionContainer"] * {{ color:var(--console-text) !important; -webkit-text-fill-color:var(--console-text) !important; }} + /* Streamlit expanders use a dark summary bar in dark browser themes. */ + details, details > summary {{ + background:#fff !important; color:var(--console-text) !important; + border-color:var(--console-border) !important; color-scheme:light !important; }} + details > summary *, details > summary::marker {{ + color:var(--console-text) !important; + -webkit-text-fill-color:var(--console-text) !important; }} div[data-testid="stButton"] > button, div[data-testid="stFormSubmitButton"] > button {{ background:#fff !important; color:var(--console-text) !important; -webkit-text-fill-color:var(--console-text) !important;