material icon indicating copy to clipboard operation
material copied to clipboard

text and md-input-container on the same row are not aligned

Open uriva opened this issue 10 years ago • 43 comments

codepen 1: http://codepen.io/anon/pen/yeNPgw codepen 2: http://codepen.io/anon/pen/qbbaYX

uriva avatar Dec 10 '15 09:12 uriva

+1 <div class="md-errors-spacer"></div> This has been added recently and pad the fields of one line every input field. This causes the text to be misaligned, as well as make overly big forms spacing when not using validation and/or without errors.

xplodwild avatar Dec 10 '15 13:12 xplodwild

+1 please remove/hide md-errors-spacer when no errors are shown to make no overly big forms.

SnakeME avatar Dec 11 '15 14:12 SnakeME

was not being added when not using validation before.

JasperG avatar Dec 12 '15 12:12 JasperG

+1

michaelkrog avatar Dec 14 '15 12:12 michaelkrog

+1

gligoran avatar Dec 15 '15 09:12 gligoran

+1, forms without ng-message are having unnecessary large spacings

julienpa avatar Dec 15 '15 16:12 julienpa

+1

chrislambe avatar Dec 15 '15 17:12 chrislambe

On a related note, <div class="md-errors-spacer"></div> is only attached to containers with input fields but not with md-select. Ideally they should have the same behaviour.

vrosa avatar Dec 16 '15 00:12 vrosa

+1

stewones avatar Dec 16 '15 17:12 stewones

+1

danielmana avatar Dec 16 '15 18:12 danielmana

+1

karsunke avatar Dec 22 '15 12:12 karsunke

+1 Fix not seen in 1.0.2

cadilhac avatar Jan 15 '16 16:01 cadilhac

+1

thanuzz avatar Jan 21 '16 15:01 thanuzz

+1

aprezv avatar Jan 26 '16 15:01 aprezv

+1

You can quickly fix this issue by using this CSS:

md-input-container .md-errors-spacer {
    min-height: 0;
}

With this code, if there is no error, there is no space below the input. Hope it could help some.

VivienZo avatar Jan 28 '16 09:01 VivienZo

+1

Good workaround @VivienZo.

alexandrejunges avatar Jan 29 '16 12:01 alexandrejunges

+1 Thx @VivienZo

manuelagard avatar Feb 01 '16 22:02 manuelagard

+1 Thanks @VivienZo

aishwat avatar Feb 09 '16 21:02 aishwat

+1

cmacdonnacha avatar Feb 12 '16 15:02 cmacdonnacha

+1

skoszuta avatar Feb 23 '16 08:02 skoszuta