Bird
Raised Fist0
Figmabi_tool~10 mins

Responsive text behavior in Figma - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the text resizing mode to fit the container width.

Figma
text.resizeMode = "[1]"
Drag options to blanks, or click blank then click option'
Afixed
BautoWidth
CautoHeight
DfitWidth
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'fixed' which does not resize text.
Confusing 'autoHeight' with width resizing.
2fill in blank
medium

Complete the code to enable text truncation with an ellipsis when it overflows.

Figma
text.overflowBehavior = "[1]"
Drag options to blanks, or click blank then click option'
Aellipsis
Bscroll
Cvisible
Dclip
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'clip' which cuts text abruptly.
Using 'visible' which shows overflow without truncation.
3fill in blank
hard

Fix the error in the code to make the text auto-resize within its container height.

Figma
text.resizeMode = "[1]"
Drag options to blanks, or click blank then click option'
Afixed
BfitWidth
CautoHeight
DautoWidth
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'fitWidth' which only adjusts width.
Using 'fixed' which disables resizing.
4fill in blank
hard

Fill both blanks to set text to resize automatically and truncate overflow with ellipsis.

Figma
text.resizeMode = "[1]"
text.overflowBehavior = "[2]"
Drag options to blanks, or click blank then click option'
AautoWidth
Bellipsis
Cclip
Dfixed
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing 'clip' with resizing which hides overflow abruptly.
Using 'fixed' disables resizing.
5fill in blank
hard

Fill all three blanks to set text to auto resize height, clip overflow, and set minimum font size to 12.

Figma
text.resizeMode = "[1]"
text.overflowBehavior = "[2]"
text.minFontSize = [3]
Drag options to blanks, or click blank then click option'
AautoHeight
Bclip
C12
Dellipsis
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ellipsis' instead of 'clip' for overflow.
Setting minFontSize as a string instead of a number.

Practice

(1/5)
1. What does Auto Width do for text in Figma when designing responsive dashboards?
easy
A. It hides the text on smaller screens.
B. It fixes the text box width regardless of text length.
C. It adjusts the text box width to fit the text on a single line.
D. It wraps the text into multiple lines automatically.

Solution

  1. Step 1: Understand Auto Width behavior

    Auto Width resizes the text box width to fit the text content on one line without wrapping.
  2. Step 2: Compare with other options

    Unlike fixed width or Auto Height, Auto Width keeps text in a single line by adjusting box width.
  3. Final Answer:

    It adjusts the text box width to fit the text on a single line. -> Option C
  4. Quick Check:

    Auto Width = fits text in one line [OK]
Hint: Auto Width means text box grows horizontally to fit text [OK]
Common Mistakes:
  • Confusing Auto Width with Auto Height
  • Thinking Auto Width wraps text
  • Assuming Auto Width fixes box size
2. Which of the following is the correct way to set text resizing in Figma for a paragraph that should wrap and adjust height automatically?
easy
A. Set resizing to Auto Height
B. Set resizing to Auto Width
C. Set resizing to Fixed Size
D. Set resizing to Fixed Height

Solution

  1. Step 1: Identify wrapping text needs

    Paragraph text that wraps requires the height to adjust automatically as lines increase.
  2. Step 2: Choose resizing option

    Auto Height allows the text box height to grow with wrapped lines, keeping width fixed.
  3. Final Answer:

    Set resizing to Auto Height -> Option A
  4. Quick Check:

    Auto Height = height adjusts for wrapped text [OK]
Hint: Use Auto Height for wrapped paragraphs to grow vertically [OK]
Common Mistakes:
  • Using Auto Width for wrapped text
  • Choosing Fixed Size which cuts off text
  • Confusing Fixed Height with Auto Height
3. Given a text box with width fixed at 200px and resizing set to Auto Height, what happens when the text content doubles in length?
medium
A. The text box shrinks to fit the original height.
B. The text box width increases to fit the text on one line.
C. The text overflows outside the box without resizing.
D. The text wraps and the height of the box increases to fit the new lines.

Solution

  1. Step 1: Analyze fixed width with Auto Height

    Fixed width means the box width stays at 200px, no horizontal resizing.
  2. Step 2: Effect of Auto Height on longer text

    Auto Height allows the box height to grow to fit wrapped text lines as content increases.
  3. Final Answer:

    The text wraps and the height of the box increases to fit the new lines. -> Option D
  4. Quick Check:

    Fixed width + Auto Height = wrap text, grow height [OK]
Hint: Fixed width + Auto Height means height grows with wrapped text [OK]
Common Mistakes:
  • Thinking width changes with Auto Height
  • Assuming text overflows without resizing
  • Confusing Auto Width with Auto Height
4. You set a text box to Auto Width but notice the text is wrapping unexpectedly. What is the most likely cause?
medium
A. The text box has a fixed width constraint limiting expansion.
B. Auto Width always wraps text by default.
C. The font size is too small to fit on one line.
D. The text box height is fixed, causing wrapping.

Solution

  1. Step 1: Understand Auto Width behavior

    Auto Width should expand the box width to fit text on one line without wrapping.
  2. Step 2: Identify constraints impact

    If a fixed width constraint is applied, it limits the box width, forcing text to wrap despite Auto Width setting.
  3. Final Answer:

    The text box has a fixed width constraint limiting expansion. -> Option A
  4. Quick Check:

    Fixed width constraint blocks Auto Width expansion [OK]
Hint: Check constraints if Auto Width text wraps unexpectedly [OK]
Common Mistakes:
  • Believing Auto Width wraps text by design
  • Ignoring width constraints on the box
  • Confusing font size effects with wrapping
5. You are designing a dashboard in Figma that must display a title and a description. The title should always be on one line and the description should wrap and adjust height. Which combination of resizing settings and constraints should you use?
hard
A. Title: Fixed Width with Auto Height; Description: Auto Width with Fixed Height
B. Title: Auto Width with no width constraint; Description: Fixed Width with Auto Height
C. Title: Auto Height with Fixed Width; Description: Auto Width with no constraints
D. Title: Fixed Width with Fixed Height; Description: Fixed Width with Fixed Height

Solution

  1. Step 1: Set title for single line

    Title needs to stay on one line, so Auto Width with no width constraint lets it expand horizontally as needed.
  2. Step 2: Set description for wrapped text

    Description should wrap and grow vertically, so Fixed Width with Auto Height keeps width fixed and height adjusts to content.
  3. Final Answer:

    Title: Auto Width with no width constraint; Description: Fixed Width with Auto Height -> Option B
  4. Quick Check:

    Title single line + Description wrapped = Auto Width + Fixed Width/Auto Height [OK]
Hint: Title single line = Auto Width; Description wrapped = Fixed Width + Auto Height [OK]
Common Mistakes:
  • Using Auto Height for title causing wrapping
  • Fixing height on description cutting text
  • Applying width constraints on title limiting expansion