Closed lessless closed 3 weeks ago
Hi @lessless,
I've seen you mentioning this in the Elixir Slack where you've already got some feedback. I agree with what @sevenseacat wrote:
I’m not sure how that proposal will go - simple form is meant to be just that, simple. It’s really hard to account for error messages of varying lengths with absolute positioning.
This is a pretty considerable downside, therefore I don't see us going with this proposal.
Finally,
Customise your own core components however you like, that’s the point of them after all, but not sure the template would be changed in such a way
is also good advice: if this solution works fine in your project, absolutely go for it! But if we did this by default, it probably wouldn't take long before a new issue about clipping error messages would come up.
Thank you!
Environment
Actual behavior
When a
simple_form
input fails validation, an error is displayed under that input, pushing all the downstream content down and causing a "jumping content" effect.This creates a frustrating experience because, as a user, I have to readjust to the new position of the submission button
Expected behavior
Input validation errors don't affect downstream content.
Potentially, we can fix that with a relative/absolute position. I'm not a CSS expert, but I'm happy to open PR if you folks find the approach below reasonable.