It was working fine. Then, I added a field and the first field on the form (which was not touched or changed) developed this extra space to the left of it. Deleting the new field and putting everything back exactly as it was before and it’s still broken.
You can see it working correctly on the live site at - http://www.hbot.md
Your problem is you nested endlees display:flex elements (parent/child/child) - this is the way to create bugs and wierd results (nested grid is for complex layout)
Example for time you need nested grid ("display:flex: inside “display:flex”). This is not your case:
This is definitely a bug. I rolled the site back to a version that was working correctly and now, if you change ANYTHING inside of the flexbox, even without touching the first field at all, it inserts extra space in front of the First Name field.
I tried just copy/pasting the email field so I can change it to a phone number field… boom, extra space in front of the First Name field. Adding a field anywhere in the form results in extra space in front of the First Name field.
Adding a class to the First Name field causes the extra space to come in, even before anything else is changed at all. The worst part is, even if I undo whatever change was just done that resulted in the extra space, the extra space remains and I have to roll back the entire project to get it to go away.
I took a look at the form and found the issue. I resolved it by adding 2% right margin on the form field with the combo class half. However I refreshed the preview link to take some screenshots of this fix, and it looks like the issue has been resolved:
I had to roll it back to a version before any changes were made, that’s why it looks like that for you.
I can add a 2% right margin, but that isn’t a fix, it’s a hack. If you remove that right margin, only that single field gets extra space to the left, and it does it when you do something like adding an unstyled class, or adding a field elsewhere in the form, and it doesn’t go back even when you undo the single change that did it.
I attempted to reproduce this issue with the steps you provided but was unable to do so. Can you please share the exact steps you took to reproduce this error?
I agree that the 2% margin is a workaround rather than a solution. If you can share a screen recording as well of the steps you took, that would be very helpful in identifying the root cause of this issue.