Saturday 4 February 2017

What are two ways to use the Lightning Design System in Lightning Apps?

What are two ways to use the Lightning Design System in Lightning Apps? Choose 2 answers

A. Reference a Static Resource using "Itng:require"
B. Copy and paste CSS classes from Lightning Design System to the CSS resource in the Application Bundle
C. Include an attribute with a name of "SLDS" of type "Boolean" that has a default value of true
D. Extend "force:slds" in the < aura:application > tag

Answer

A.  Reference a Static Resource using "Itng:require"
D.  Extend "force:slds" in the < aura:application > tag

Explanation

Use the Lightning Design System to style your Lightning apps by extending force:slds or using a static resource. The Salesforce Lightning Design System provides a look and feel that’s consistent with Lightning Experience. Use Lightning Design System styles to give your custom applications a UI that is consistent with Salesforce, without having to reverse-engineer our styles. Your application automatically gets Lightning Design System styles and design tokens if it extends force:slds. This method is the easiest way to stay up to date and consistent with Lightning Design System enhancements. To extend force:slds: When you extend force:slds, the version of Lightning Design System styles are automatically updated whenever the CSS changes. If you want to use a specific Lightning Design System version, download the version and add it to your org as a static resource

No comments:

Post a Comment

Salesforce Certified Sharing and Visibility Designer - Spring '18 Release Exam

1 of 5. An organization uses Enterprise Territory Management to assign Accounts based on geography. In addition, Op...