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

Top Salesforce Career Paths to Watch in 2026

Blog in

The Salesforce ecosystem continues to evolve rapidly, driven by advancements in AI, automation, data intelligence, and industry-specific cloud solutions. As businesses increasingly rely on Salesforce…

Popular Salesforce Videos