Content and overflow
Dynamic content should be allowed to use the space it needs. A fixed height is a product decision, not a shortcut for matching one screenshot.
The visual introduction shows why these decisions matter to the team.
Prefer content-driven height
Section titled “Prefer content-driven height”Let text, data, and lists grow. Test long words, prices, names, localization, errors, and empty states.
When a fixed height is valid
Section titled “When a fixed height is valid”Use it when the product needs a known viewport, crop, media frame, or scroll region. Then decide what happens when content does not fit. A growing block is no longer fixed-height; if the boundary must stay fixed, define how the content behaves inside it:
- wrap within the boundary; if the whole block must grow, use content-driven height instead;
- clip with a visible reason;
- scroll inside a named region;
- truncate with an accessible way to read the rest.
Do not use manual line breaks or separate mobile text only to preserve a composition.
Check the edges
Section titled “Check the edges”Verify that content, focus, validation messages, and interactive targets are not clipped accidentally. See responsive behavior for intermediate widths.
The rule is ready when the team knows how the block behaves with normal, long, empty, and error data.