Error message does not take up space in form#613
Conversation
|
I think having the built-in spacing is good. It means all our forms will be a bit more vertically spaced, but that might be ok. Just review how it looks across the application to avoid any unforeseen side effects. |
|
@mavarius So here's a snippet of what the forms will look like with "built-in" spacing. I'm starting to think that we should leave the error message spacing behavior alone because built-in spacing throws off the vertical rhythm of the form elements and without built-in spacing, the error message overlaps with the component below. Especially if you look at the label creation form where there are multiple inputs in the form, it looks off But I am all for changing the behavior of when there is help text + error text! What do you think about the spacing issue? |




Closes #232
Changes
// Describe what you changed
I added new styling container on top of the form error message so that when an error message appears, it does not take up spacing.
Screenshots
Screen.Recording.2021-04-25.at.3.03.53.PM.mov
There is one caveat. This means that developers using clockface have to add in the right spacing after the input element so that this does not happen:
Or I can make it so that it has built in spacing out of the box. @mavarius do you have thoughts on which one might be preferable?
I see good reasons for having pre-defined spacing to prevent the overlap (easy out of the box) and also not having it (more freedom).
// Add screenshots here if relevant
Checklist
Check all that apply