font awesome TreeNode icon color

Post Reply
kaizokun
Posts: 11
Joined: 29 May 2013, 14:44

22 Feb 2018, 16:50

Hello guys,

I desperately try to change the color of the icons in the tree component. I try this solution https://stackoverflow.com/questions/414 ... primefaces
using css classes but it doesn't work for me. Maybe because of the template ? I don't know I use Barcelona. The differents themes doesn't seem to change anything about the icon colors. If anybody has a solution I'd be very gratefull.

kaizokun
Posts: 11
Joined: 29 May 2013, 14:44

22 Feb 2018, 17:08

Found a solution


body .ui-widget-content .node-type-one{
color : #FBC02D;
}



then I put the node-type-one class into the icon attribute of the p:treeNode

kubrasulukan
Posts: 87
Joined: 10 Jan 2018, 16:04

23 Feb 2018, 08:21

Glad to hear !

Best Regards

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest