https://discord.gg/botpress logo
Does anyone know how to change the
# 🌎general
p
Does anyone know how to change the colour specifically bot messages using the new webchat styler? Have been looking at the css classes but cant seem to pin the right one down. Thanks 🙂
w
It seems that they use the same class for both the user's messages and the chatbot's,
bpMessageBlocksBubble
. The difference lies in the
<div>
container with the class
bpMessageContainer
, which has a
data-direction="incoming"
attribute for the bot and
data-direction="outgoing"
for the user . Give this a try
Copy code
css
div.bpMessageContainer[data-direction="incoming"] div.bpMessageBlocksBubble {
   background-color: yellow
}
p
that you! this did the trick
3 Views