How can I change toolbar icon color?

I'm trying to set Edit (blue), Update (green) and Delete(red) icons colors. How can i do it? 
Also i'm trying to set round colored border, like this:



3 Replies

RR Rajapandi Ravi Syncfusion Team March 7, 2022 01:52 PM UTC

Hi Test, 

Greetings from Syncfusion support 

We understand that you like to change the toolbar icon color which was same as your shared image. Based on your query, we have prepared a sample and we suggest you use the below way to achieve your requirement. Please refer the below code example and sample for more information. 

 
<style> 
    .e-toolbar-item[title=Edit]
    border-color: blue; 
    border-style: solid; 
    border-radius: 15px; 
    } 
    .e-toolbar-item[title=Delete]
    border-color: red; 
    border-style: solid; 
    border-radius: 15px; 
    } 
    .e-toolbar-item[title=Update]
    border-color: green; 
    border-style: solid; 
    border-radius: 15px; 
    } 
    </style> 



Screenshot: 

 

Regards, 
Rajapandi R 



TT Test Test replied to Rajapandi Ravi March 7, 2022 11:23 PM UTC

Thanks for reply. Also how can I change color of the icons (pen, rubbish can, floppy disk)



RR Rajapandi Ravi Syncfusion Team March 8, 2022 01:35 PM UTC

Hi Test, 

Thanks for the update 

We understand that you like to change the color of the toolbar icons. Based on your query, we have prepared a sample and we suggest you use the below way to achieve your requirement. Please refer the below code example and sample for more information. 

To change the color of the icons, please use the below CSS to achieve your requirement. 


.e-btn-icon.e-delete{ 
        color: red !important; 
    } 
    .e-btn-icon.e-edit{ 
        color: blue !important; 
    } 
    .e-btn-icon.e-update{ 
        color: green !important; 
    } 


If you like to change the color of the Toolbar text, please use he below CSS to achieve your requirement. 


.e-toolbar-item[title=Edit] .e-tbar-btn-text{ 
        color: blue !important; 
    } 
    .e-toolbar-item[title=Delete] .e-tbar-btn-text{ 
        color: red !important; 
    } 
    .e-toolbar-item[title=Update] .e-tbar-btn-text{ 
        color: green !important; 
    } 



Screenshot 

 

Regards, 
Rajapandi R 


Loader.
Up arrow icon