md-hint does not expand padding for md-input around it.
Bug, feature request, or proposal:
The hint inside of an md-input overlaps with the next element on the page. This looks pretty bad.
What is the expected behavior?
That the hint not overlap with the next element.
What is the current behavior?
The hint overlaps with the next element.
What are the steps to reproduce?
Add an md-input with an md-hint on the inside. The next line will be within the md-hint that should be inside of the md-input. It overlaps on the page. http://plnkr.co/edit/a3070WC9yA6Xp3id15Kb
What is the use-case or motivation for changing an existing behavior?
So that my website looks better. It can't be normal behavior to overlap the md-input hint with the following element which it has nothing to do with.
Which versions of Angular, Material, OS, browsers are affected?
Chrome Version 53.0.2785.143 (64-bit). Ubuntu 16.10. @angular/[email protected]. @angular/core@^2.1.0.
Is there anything else we should know?
Nope!
I think changing the size of the element when the hint is shown is just going to create more layout trouble for developers than it will fix. So we either have to live with md-input that have a little too much bottom space when there's no hint or md-input that don't quite have enough bottom space when there is a hint.
@jelbourn do you have a preference for which way we go on this? I could see maybe adding a bit more margin (also making the margin em based rather than px based so it works for different font sizes).
@davidwilcox in the meantime you can easily add some extra margin to all of the md-input on your site like this:
md-input {
margin-bottom: 0.5em;
}
@mmalerba I would lean towards the component always leaving room for the hint whether it's there or not. We could potentially add an attribute to remove it.
yeah that's what I was thinking, sg
Just curious... What was the fix here?
Oh. It's on the linked issue?
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.