12 lines
562 B
Markdown
12 lines
562 B
Markdown
---
|
|
name: Empty error elements are intentional
|
|
description: Always-rendered error paragraphs with min-height prevent layout shift when errors appear
|
|
type: feedback
|
|
---
|
|
|
|
Always-rendered `<p class="error">{error}</p>` elements with `min-height: 1.4em` are intentional — they reserve space so surrounding elements don't shift when an error message appears.
|
|
|
|
**Why:** Layout stability during form validation feedback.
|
|
|
|
**How to apply:** Do not suggest wrapping these in `{#if error}` or removing the `min-height`. This is a deliberate UX choice, not an oversight.
|