Closed bruffridge closed 8 months ago
This looks awesome @bruffridge! You are becoming a true master of Deep Chat!
At the moment I am trying to keep the default styling as plain as possible so that devs can tailor it to their preferences. However, would you mind if add this to our design examples?
Sure! I edited my first comment with some more code I added yesterday to style the attachmentContainer and attachment button. Thanks for providing so many styling 'hooks' for frontend devs! Gives us a lot of customizability.
I have tailored your example to the iMessage SMS example to standout in the design examples, like this:
However, when doing this I noticed a small bug in the code where upon using a custom svg for the dropup button stops the user from able to open it up. I have made the fix for it, and it will be going out along with the next release. With that release, I will also include the example.
The release is set to go out sometime this week. :)
Great design! May I know if it is possible for all inline styling to be able to be specified in a css file?
Sorry I don't think I understand your question.
If you are asking if it is possible to add the styling using a css file, the answer would be no as deep chat is a shadow element
meaning that the parent css will not affect its internals. However, you can overwrite the parent-most styling e.g:
deep-chat {
background-color: yellow !important;
}
I'm not sure if this was your question, a little bit more context would help. Thanks!
Yes, I mean if it is possible chatStyle, submitButtonStyles, textInput style etc can be specified in a css file instead of inline. I even tried the main deep chat styling
#chat-element {
border-radius: 10px;
position: fixed;
bottom: 5%;
right: 5%;
z-index: 1;
width: 30vw;
height: 30vh;
background-color: #fafafa;
}
But it didnt work. Seems like what you say is not possible.
Unfortunately not. Apologies.
The iMessage example how now been included in the Design Page.
Really like the default styling and how similar it is to iMessage. I made a few more style tweaks to make it even more like iMessage. Thought I'd share just in case you wanted to make these the defaults for deep-chat.