finos / symphony-bdk-java

The Symphony BDK (Bot Developer Kit) for Java helps you to create production-grade Chat Bots and Extension Applications on top of the Symphony REST APIs.
https://symphony-bdk-java.finos.org
Apache License 2.0
23 stars 68 forks source link

Custom style #520

Closed JosephP91 closed 3 years ago

JosephP91 commented 3 years ago

Hi! I was wondering if it's possibile to add custom CSS styles to messageML tags. In my specific case, I need to color a portion of the text with a different color than the other portion, but I cannot use certain css options. Is it possible?

symphony-youness commented 3 years ago

Hi @JosephP91 , maybe you can use inline styles.

We have a renderer tool that you can use: https://renderer-tool.app.symphony.com/ On the right side, you have a dropdown where you can select Text Formatting and it will show you an example of inline styling a span tag.

JosephP91 commented 3 years ago

Hi @symphony-youness ,

yes, I was using the renderer tool to make some test, but as far as I can see from the docs, not all the CSS properties are supported. Specifically, I was trying to use -webkit-background-clip: text;, but the tool says it's an unsupported tag.

Is there a way to use it?

symphony-adnane commented 3 years ago

Unfortunately @JosephP91 not all CSS props are allowed, If you need to color just a portion of text, did you think about splitting that section in a span and applying the style you want? (using style="color: ...")

JosephP91 commented 3 years ago

Yes I though about it, but I was trying to follow the easy way with a simple CSS prop. But at this point I think I'll go for that. Thank you!