Activity › Forums › Salesforce® Discussions › Why we use of THIS CSS class in lightning component?

  • Why we use of THIS CSS class in lightning component?

    Posted by Nikita on October 10, 2019 at 2:05 PM

    Why we use of THIS CSS class in lightning component?

    Piyush replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    October 11, 2019 at 2:23 AM

    Hi Nikita,

    THIS CSS effectively, adds namespacing to CSS and helps prevent one component’s CSS from overriding another component’s styling. The framework throws an error if a CSS file doesn’t follow this convention.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos