Skip to content

Commit

Permalink
fix input color
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 13, 2024
1 parent 59af70e commit 620e6a5
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,21 @@ def get_svg_base64(svg_content):
overflow-wrap: break-word;
}
/* Style chat input text color */
.stChatInput > div > textarea::placeholder {
color: var(--white) !important;
}
/* Target both placeholder and actual text */
.stChatInput textarea,
.stChatInput textarea::placeholder,
.stChatInput textarea:not(:placeholder-shown) {
color: white !important;
}
/* Force text color for active input */
.stChatInput textarea:focus {
color: white !important;
}
/* Style placeholder text color */
.stTextInput input::placeholder, .stTextInput textarea::placeholder {
color: var(--white);
/* Target the wrapper to ensure color inheritance */
[data-testid="stChatInput"] > div {
color: white !important;
}
</style>
""", unsafe_allow_html=True)
Expand Down

0 comments on commit 620e6a5

Please sign in to comment.