ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 207 - Certified User Experience Designer discussion

Report
Export

After conducting user interviews, a UX Designer finds that an equal amount of users prefer to use the Comfy density setting as the Compact density setting while viewing record details.

Which approach should be avoided by developers when building custom components to make sure their components take advantage of this setting?

A.
Using the varSpacingMedium design token in CSS to set spacing
Answers
A.
Using the varSpacingMedium design token in CSS to set spacing
B.
Using REM_based spacing values when styling components.
Answers
B.
Using REM_based spacing values when styling components.
C.
Using existing Lightning Components such as the card or page header
Answers
C.
Using existing Lightning Components such as the card or page header
Suggested answer: B

Explanation:

When developers are building custom components in Salesforce and need to ensure that these components adapt to user preferences for density settings (Comfy or Compact), they should avoid using REM-based spacing values. This is because REM-based spacing does not automatically adjust based on the density setting chosen by the user, leading to a lack of consistency with the rest of the Salesforce UI, which does adapt to these settings. Instead, developers should:

A) Use the varSpacingMedium design token in CSS, as Salesforce Lightning Design System (SLDS) design tokens are context-aware and can adjust their values based on the density setting, ensuring a consistent user experience across different user preferences.

C) Use existing Lightning Components such as the card or page header, which are pre-built to adapt to density settings, ensuring that custom components align with the overall Salesforce UI and respect user settings for density.

Reference: Salesforce Lightning Design System (SLDS) documentation provides guidelines on using design tokens and building responsive components that respect user settings like density preferences. You can find more information on the official Salesforce Developers website or the SLDS documentation section.

asked 23/09/2024
abdelhafid houssa
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first