Activity Forums Salesforce® Discussions How do I change icon color in LWC?

  • Aditya

    Member
    December 24, 2020 at 5:33 pm

    Solution – Custom Background Color for LWC Icons

    1. Step 1 : Right click on Icon where you want to change background color and click on inspect. View Source code of LWC Icon in Chrome.
    2. Step 2 : Copy svg tag and paste in your editor and add css. DOnt forget to add div tag as parent to control icons size.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos