portal change color text info, warning, danger

damiensainte
Kilo Explorer

Hello,

I want to change Text Info color (and Warning, Danger) in branding-editor.

But only Test success is available.

How can the color be changed?

text color.jpg

1 ACCEPTED SOLUTION

Ok so for circle icons the text and the image are set to have the same color, if you delete the CSS that links the info-text to $brand-info, then both the text and the image will be set to the .info-text color you define in your style, or in your local CSS.  



Did you want the image and the text to be a different color?   We would have to add a class to the HTML for that to occur.



Now that you removed the CSS did you edit the CSS at the style level?



CSS edit system wide for text-info


Screen Shot 2017-07-27 at 5.17.42 PM.png



Local text-info edit



Screen Shot 2017-07-27 at 5.21.43 PM.png




In the event that you want the text and image to be a different color:



Screen Shot 2017-07-27 at 5.26.30 PM.png



Screen Shot 2017-07-27 at 5.26.43 PM.png



Best,


Andrew


View solution in original post

6 REPLIES 6

Andrew Wortham
Kilo Guru

Hey Damien,



Where are you trying to change these colors? You can override Bootstrap classes in the theme, if you are creating a custom widget.



Screen Shot 2017-07-27 at 2.49.36 PM.png



If you are trying to set them in the Icon links, it will not work, since the CSS of the widget is setting the class to be the same as brand color. You would have to clone the widget to change this.



Screen Shot 2017-07-27 at 2.51.00 PM.png



But in a custom widget it will work as you can see above. Navigate to   Service Portal > Portals > Click through the "Theme" reference


Screen Shot 2017-07-27 at 2.56.48 PM.png



Override whatever bootstrap classes you need using the pattern you see above.



Best,


Andrew


Hy, I want to change the color of "Order something" with the color #776dac


I have clone the widget "Icon link" and change the Instance with link "Order something" with this clone. but it doesn't work.


what is exactly the code in CSS widget ? and


Hey Damien,



If you cloned the widget, go into the widget and remove the custom CSS of your widget that maps the text color to the brand color, then you can change the color by overriding the bootstrap colors above.   If you don't want to set colors system wide, and want to keep them isolated to the widget you can just set them directly in the code of the custom widget rather than deleting it.



Make sure you then replace the old widget with your new custom widget keeping the instance options the same. (In my quick demo I didn't set the instance options to the same)



Screen Shot 2017-07-27 at 4.00.24 PM.png



Screen Shot 2017-07-27 at 4.01.59 PM.png


OK, I have delete CSS.


And If the template is color box it's OK, and bootstrap color "Info" with purple color.


find_real_file.png


find_real_file.png


But if i change in Circle icon, color is blue and not purple



find_real_file.png