components icon indicating copy to clipboard operation
components copied to clipboard

md-hint, md-error overflow the md-input-container

Open BaimosTechnologies opened this issue 9 years ago • 6 comments

Bug, feature request, or proposal:

md-hint, md-error overflow the md-input-container at the bottom.

screen shot 2017-07-06 at 15 17 56

It's causing overlaps with the next control like for this Login button. screen shot 2017-07-06 at 15 32 26

What is the expected behavior?

Child controls of the md-input-container should not overflow the container.

What is the current behavior?

md-hint, md-error overflow the md-input-container

What are the steps to reproduce?

First print screen for the hint made from here: https://material.angular.io/components/input/examples

What is the use-case or motivation for changing an existing behavior?

Input controls overlap on the next ones like in the second image with the error.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/core: 4.2.3 @angular/flex-layout: 2.0.0-beta.8 @angular/material: 2.0.0-beta.7 typescript: 2.3.4 font-name: Roboto MacOS Sierra Chrome, Firefox, Safari

Is there anything else we should know?

BaimosTechnologies avatar Jul 06 '17 13:07 BaimosTechnologies

I see this is solved, can you also check @jelbourn @mmalerba and close it?

BaimosTechnologies avatar Jul 20 '17 14:07 BaimosTechnologies

It still seems very slightly too short (can be seen when setting the font size very high (e.g. 100px). I'll create a PR

mmalerba avatar Jul 20 '17 19:07 mmalerba

Better, but still not perfect, when I zoom it overflows, see here:

screen shot 2017-07-28 at 11 07 37

BaimosTechnologies avatar Jul 28 '17 09:07 BaimosTechnologies

In the material guidelines says to set the padding both above and below the hint and error controls, which makes sense if you need to stack more element over each other.

patterns_errors_userinput_keyline1

Input and error text Tile height: 64dp Padding above input text: 16dp Padding below input text: 8dp Padding above and below error text: 4dp

BaimosTechnologies avatar Aug 11 '17 14:08 BaimosTechnologies

@PhilipSultanescu The spec also says different numbers for those same measurements in the text fields section so nothing is going to completely agree with every image in the spec. I think the recent changes put the spacing between internal elements in a good state. For the host element its easy for developers to just set whatever margin they want for their application

mmalerba avatar Aug 11 '17 15:08 mmalerba

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.