components icon indicating copy to clipboard operation
components copied to clipboard

md-select label higher than md-input

Open pacoferre opened this issue 9 years ago • 6 comments

Bug, feature request, or proposal:

Images taken from material.angular.io website. Left is md-input and right is md-select. image

Why are the labels in different positions?

What is the expected behavior?

Same label position in both components.

What is the current behavior?

md-select label is higher than md-input label.

What are the steps to reproduce?

Just look at md-input/md-select help sections in material.angular.io

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

User experience is not good.

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

Angular 2.4.4 Angular Material 2.0.0-beta.1 Chrome/IE/Edge

Is there anything else we should know?

md-input-container is not allowed with md-select

pacoferre avatar Feb 01 '17 14:02 pacoferre

Ok, changing

.md-select-placeholder.md-floating-placeholder { top: -17px; } .md-select-value { top: 2px; } .md-select-trigger { height: 25px; }

Also in -17 instead of -22 in: https://github.com/angular/material2/blob/master/src/lib/select/select-animations.ts#L24 and https://github.com/angular/material2/blob/master/src/lib/select/select-animations.ts#L29

Fixes the position of all elements.

pacoferre avatar Feb 01 '17 15:02 pacoferre

.md-select-trigger {margin: 8px 0;} worked for me

tom-startsat60 avatar Feb 02 '17 05:02 tom-startsat60

Yeah, select and input should definitely align. There is an existing issue tracking this though (https://github.com/angular/material2/issues/2124), so closing this as a dupe.

kara avatar Feb 03 '17 00:02 kara

show stopper at the moment capture

atul221282 avatar Apr 08 '17 15:04 atul221282

Has there been a fix for this yet?

spyter avatar Jun 29 '17 14:06 spyter

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.