Files
wiki-tcg/memory/feedback_empty_error_elements.md
2026-04-01 18:31:33 +02:00

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.