• #14193
    Salesforce | PRANAV PRANAV #1
    Forcetalks

    If we declare lightning style in a Salesforce lightning component does it affect lightning application?

    If we declare <ltng:require styles=”{!$Resource.REPLACE_WITH_NAME_OF_SLDS_STATIC_RESOURCE +’/assets/styles/salesforce-lightning-design-system-ltng.css’}”/>  in lightning component does it affect the lightning application preview?

    Tagged: , , , , , , ,

    • This topic was modified 1 year, 11 months ago by Salesforce | PRANAV PRANAV.
    • This topic was modified 1 year, 11 months ago by Salesforce | PRANAV PRANAV.
    • This topic was modified 3 months, 3 weeks ago by Salesforce | Team Team.
    • This topic was modified 3 months, 3 weeks ago by Salesforce | Team Team.
    #14797
    Salesforce | Himanshu Himanshu #125
    Forcetalks

    Hi  Pranav,

    if you use  this tag that’s that helps you to provide the standard css in your lightning pages.

    <ltng:require styles=”{!$Resource.REPLACE_WITH_NAME_OF_SLDS_STATIC_RESOURCE +’/assets/styles/salesforce-lightning-design-system-ltng.css’}”/>

     

    #25625
    Forcetalks

    Hi Pranav,

    Only including the style from the static resource in your lightning component will neither affect your lightning component nor your Lightning application. However, it will affect the preview of the lightning application if the component is included in the Lightning application and uses the CSS attributes. The scope of this static resource will be limited to Lightning component.

    Thanks.

     

Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?