Activity Forums Salesforce® Discussions Use of THIS CSS class in Salesforce?

  • shariq

    Member
    September 23, 2018 at 11:13 pm

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

  • Avnish Yadav

    Member
    September 25, 2018 at 6:19 am

    Hello,

    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.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos