Skip to content

Commit 620e6a5

Browse files
fix input color
1 parent 59af70e commit 620e6a5

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

app.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,21 @@ def get_svg_base64(svg_content):
7474
overflow-wrap: break-word;
7575
}
7676
77-
/* Style chat input text color */
78-
.stChatInput > div > textarea::placeholder {
79-
color: var(--white) !important;
80-
}
77+
/* Target both placeholder and actual text */
78+
.stChatInput textarea,
79+
.stChatInput textarea::placeholder,
80+
.stChatInput textarea:not(:placeholder-shown) {
81+
color: white !important;
82+
}
83+
84+
/* Force text color for active input */
85+
.stChatInput textarea:focus {
86+
color: white !important;
87+
}
8188
82-
/* Style placeholder text color */
83-
.stTextInput input::placeholder, .stTextInput textarea::placeholder {
84-
color: var(--white);
89+
/* Target the wrapper to ensure color inheritance */
90+
[data-testid="stChatInput"] > div {
91+
color: white !important;
8592
}
8693
</style>
8794
""", unsafe_allow_html=True)

0 commit comments

Comments
 (0)