Exam4Training

Which two impacts of the LWC’s Shadow DOM should be considered when designing or developing the stylesheets for these components?

A UX Designer is creating a custom To-Do List component to replace the standard Salesforce one. Their developer is using a parent-child Lightning Web Component (LWC) structure to build the component, creating a parent component for the list and a single repeated child component for each To-Do Item within the list.

Which two impacts of the LWC’s Shadow DOM should be considered when designing or developing the stylesheets for these components? Choose 2 answers
A . Any needed Saleforce Lightning Design System (SLDS) classes and styles must be imported into both the parent list and child items.
B. The CSS styles defined in the parent list component are not shared with the child items.
C. Any custom shared between the list and child items should be imported from a shared CSS file.
D. The CSS style defined in the parent list component are inherited by the child items

Answer: B,C

Exit mobile version