SfButton not getting assigned CssClass specified

I am not able to assign a CssClass definition to SfButton. I can assign the value but the SfButton always inherits the container class definition. How can I accomplish this?

1 Reply 1 reply marked as answer

GK Gayathri KarunaiAnandam Syncfusion Team March 31, 2021 07:09 AM UTC

Hi Jim Young, 

We have checked your reported query. We can customize the Button component by using CssClass as demonstrated in the below code snippet. 
 
<SfButton IconCss="e-icons e-delete-icon" IconPosition="IconPosition.Right" CssClass="e-custom">Remove</SfButton> 
 
<style> 
    .e-delete-icon::before { 
        content: '\e773'; 
 
    } 
    .e-custom { 
        color : black; 
        background-color: antiquewhite; 
        border-color: red; 
    } 
</style> 


For your reference, we have prepared a sample based on your scenario. Please check the below link. 

Please get back to us, if you need further assistance. 

Regards, 
Gayathri K 


Marked as answer
Loader.
Up arrow icon