I’m trying to figure out the best way to create some spacing between the required message and the address input. In the image, you can see that the required message runs right up against the top of the address input. I tried to use padding in the css but that didn’t seem to work.
Hi,
I’m guessing that the required message is removed from the flow and is absolute positioned. That is why it is laying on top of the address field and not pushing it down. The padding you added is probably there and you would notice it if there was a border or background color.
Actually I think that is the accepted way of doing it since the message is just there momentarily until the field is correct. If it was position static the neighboring fields would be jumping up and down with the error messages.
I was referring to a tooltip that replaces the error message and stays in place. Not a traditional tooltip that is revealed when you hover over the element. The one in the picture above only goes away once the user places focus back on the element. Otherwise that error flag will be displayed regardless of whether the user hovers over it or not.