Visualforce & Lightning Experience  - Understand Important Visual Design Considerations
26 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What happens to Visualforce pages when rendered in Lightning Experience without reworking them?

  • They display new styling applied to Lightning Experience.
  • They retain the Salesforce Classic visual design. (correct)
  • They automatically adapt to Lightning Experience features.
  • They become unviewable in Lightning Experience.
  • Why is it generally not recommended to adapt existing Visualforce pages to match Lightning Experience styling?

  • Existing pages are incompatible with Lightning Experience.
  • Lightning Experience styling is static and unchanging.
  • It requires substantial resources and might not reflect future changes. (correct)
  • Only new pages can be styled effectively.
  • What is one limitation of using built-in Visualforce components regarding their styling?

  • They do not automatically respond to CSS changes in Lightning Experience. (correct)
  • They can only take styles from external stylesheets.
  • They can only be restyled for use in Salesforce Classic.
  • They require JavaScript for proper styling adjustment.
  • What is the purpose of the style attribute in Visualforce components?

    <p>To set styles directly on a component.</p> Signup and view all the answers

    What is a recommended approach when creating new Visualforce pages for Lightning Experience?

    <p>Utilize tools from the Salesforce Lightning Design System.</p> Signup and view all the answers

    Which method is recommended for adding CSS style definitions to Visualforce pages?

    <p>Using the static resources and the <link> tag.</p> Signup and view all the answers

    How do the built-in Visualforce components display their user interface elements?

    <p>They use a static rendering based on Classic styling.</p> Signup and view all the answers

    How can you load a custom stylesheet only when a page is running in Lightning Experience?

    <p>By conditionally including the <link> tag in the markup.</p> Signup and view all the answers

    What is a characteristic of the CSS stylesheets used by built-in Visualforce components?

    <p>They are loaded by default and rely on Classic styling.</p> Signup and view all the answers

    What should you do to make existing Visualforce pages look more like Lightning Experience?

    <p>Combine both markup changes and styling rule modifications.</p> Signup and view all the answers

    What is the main benefit of using the lightning:stylesheet component in Visualforce pages?

    <p>It allows referencing stylesheets without uploading them as static resources.</p> Signup and view all the answers

    Which statement is true about Visualforce pages in Lightning Experience?

    <p>They can be customized to fit better with Lightning Experience.</p> Signup and view all the answers

    What is a key recommendation for existing Visualforce pages regarding visual design adjustments?

    <p>They should generally remain unchanged to avoid confusion.</p> Signup and view all the answers

    Which of the following is NOT an acceptable way to apply lightning design to Visualforce pages?

    <p>Applying styles from the Lightning Design System to classic Visualforce pages.</p> Signup and view all the answers

    What are the advantages of using a custom stylesheet over inline styles in Visualforce?

    <p>Allows for easier maintenance and consistency across pages.</p> Signup and view all the answers

    What does the styleClass attribute do in a Visualforce component?

    <p>It attaches existing predefined classes to a component.</p> Signup and view all the answers

    What is the primary limitation when using static resources for stylesheets?

    <p>There is a 250-mb limit on static resources.</p> Signup and view all the answers

    Which statement accurately describes the Lightning Design System?

    <p>It provides a toolkit for styling Visualforce pages to match Lightning Experience.</p> Signup and view all the answers

    What is the recommended approach for integrating Lightning Design System with Visualforce?

    <p>Creating new pages that follow the new markup structure of the Lightning Design System.</p> Signup and view all the answers

    What is a significant issue when trying to apply the Lightning Design System to existing Visualforce pages?

    <p>Existing markup does not conform to the new design framework's structure.</p> Signup and view all the answers

    Why is it discouraged to override Salesforce Classic stylesheet styles in Visualforce?

    <p>It introduces dependencies on internal implementation details that may change.</p> Signup and view all the answers

    What resources are included in the Lightning Design System?

    <p>A CSS framework, graphic assets, and customization tools.</p> Signup and view all the answers

    What challenge do most organizations face when using Lightning Design System with Visualforce?

    <p>The integration requires extensive reworking of existing static code.</p> Signup and view all the answers

    What does 'impedance mismatch' refer to in the context of using Lightning Design System with Visualforce?

    <p>Incompatibility between Visualforce components and Lightning Design System's structure.</p> Signup and view all the answers

    What is the primary benefit of using Lightning Design System for new applications?

    <p>It ensures a perfect match with the Lightning Experience user's interface.</p> Signup and view all the answers

    What impact does using built-in Visualforce components have on styling strategies?

    <p>They create risks of future style breakage due to internal changes.</p> Signup and view all the answers

    Study Notes

    Visual Design Considerations

    • Visualforce pages have the same appearance in both Salesforce Classic and Lightning Experience without adaptation.
    • Built-in Visualforce components retain Salesforce Classic styling, making pages feel out of place in Lightning Experience.
    • It is recommended to avoid adapting existing pages for Lightning Experience due to ongoing changes in its styling.

    Styling Standard Components

    • Visualforce allows modest styling adjustments via style and styleClass attributes for individual components.
    • Custom stylesheets can be added as static resources to enhance the Visualforce page appearance.

    Using Custom Stylesheets

    • Use <apex:stylesheet> to incorporate custom CSS from static resources for consistent styling across Visualforce pages.
    • When using Lightning Design System, include it directly in the markup instead of as a static resource for easier integration.

    Lightning Experience Styling

    • For Lightning Experience, utilize specific markup to load custom stylesheets and ensure visual consistency.
    • Two main strategies exist to enhance existing pages: adjusting markup and updating styling rules in stylesheets.

    Lightning Design System Overview

    • The Lightning Design System provides a comprehensive framework for creating apps that closely resemble Lightning Experience.
    • Key components: CSS framework, graphic assets, and Salesforce Sans font for cohesive design.
    • It is optimally utilized with new pages, as it necessitates a modern markup structure that Visualforce does not inherently support.

    Considerations for Existing Pages

    • Incorporating Lightning Design System into existing Visualforce pages can be challenging due to markup differences.
    • Encouraged to avoid heavy reliance on internal HTML structures of Visualforce components as they are subject to change, which can break styling.

    Overall Recommendations

    • For new development, always use the Lightning Design System to achieve a coherent look with Lightning Experience.
    • Modify existing styles cautiously, keeping in mind the potential pitfalls of depending on Visualforce's intrinsic elements.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    This quiz focuses on critical visual design considerations when working with Visualforce components in Salesforce. You'll explore styling differences between Salesforce Classic and Lightning Experience and learn how to apply the Salesforce Lightning Design System to Visualforce pages. Test your understanding of these key concepts.

    Use Quizgecko on...
    Browser
    Browser