ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 208 - Certified User Experience Designer discussion

Report
Export

A UX Designer needs to restyle a <lightning-modal /> Lightning Web Component (LWC) to meet brand guidelines.

Which key consideration about that LWC should the UX designer be aware of?

A.
Only the main Lightning Modal component can be styled using styling hooks.
Answers
A.
Only the main Lightning Modal component can be styled using styling hooks.
B.
Only the body, footer, and header helper components can be styled using styling hooks.
Answers
B.
Only the body, footer, and header helper components can be styled using styling hooks.
C.
The model cannot be styled using styling hooks
Answers
C.
The model cannot be styled using styling hooks
Suggested answer: A

Explanation:

When restyling a <lightning-modal /> Lightning Web Component (LWC) to meet brand guidelines, it's important to know that styling customization options may be limited. Specifically, only the main Lightning Modal component can be styled using styling hooks. This limitation means that while you can apply brand-specific styles to the overall modal component using styling hooks, the finer control over the modal's internal sections (like the body, footer, and header) might not be directly accessible through these hooks. This constraint necessitates a strategic approach to styling, focusing on the aspects of the modal that can be customized to align with brand guidelines while understanding the inherent limitations.

Reference: For more information on styling Lightning Web Components and the use of styling hooks, the Salesforce Developer Documentation on Lightning Web Components and the Salesforce Lightning Design System (SLDS) offers detailed guidance and best practices.

asked 23/09/2024
Jason Potter
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first