ExamGecko
Question list
Search
Search

Question 195 - Certified B2B Commerce Developer discussion

Report
Export

What are two common and maintainable ways the content layout of a Lightning Web Component can be implemented?

A.
Spreading layout styles across several separate components
Answers
A.
Spreading layout styles across several separate components
B.
Styling the :host pseudo-element (or other elements) via the CSS file
Answers
B.
Styling the :host pseudo-element (or other elements) via the CSS file
C.
Using inline styles
Answers
C.
Using inline styles
D.
Applying SLDS classes to internal elements
Answers
D.
Applying SLDS classes to internal elements
Suggested answer: B, D

Explanation:

For maintainable and scalable Lightning Web Component development, it's recommended to style components by targeting the :host pseudo-element in the component's CSS file and by applying Salesforce Lightning Design System (SLDS) classes to internal elements. These practices ensure consistent styling that aligns with Salesforce's design standards and provides a clear separation of concerns between component structure and styling.

asked 23/09/2024
Alessandro Cristofori
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first