Activity Forums Salesforce® Discussions What is the Use of THIS Salesforce CSS class?

  • shariq

    Member
    September 24, 2018 at 3:23 am

    This adds namespacing to CSS and helps prevent one component’s CSS from blowing away another component’s styling.

  • Avnish Yadav

    Member
    September 28, 2018 at 6:47 am

    All top-level elements in a component have a special THIS CSS class added to them. This, 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