🐐
This commit is contained in:
11
memory/feedback_empty_error_elements.md
Normal file
11
memory/feedback_empty_error_elements.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
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.
|
||||
Reference in New Issue
Block a user