Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md-select label higher than md-input #2884

Closed
pacoferre opened this issue Feb 1, 2017 · 6 comments
Closed

md-select label higher than md-input #2884

pacoferre opened this issue Feb 1, 2017 · 6 comments

Comments

@pacoferre
Copy link

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
Copy link
Author

pacoferre commented Feb 1, 2017

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.

@tom-startsat60
Copy link

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

@kara
Copy link
Contributor

kara commented Feb 3, 2017

Yeah, select and input should definitely align. There is an existing issue tracking this though (#2124), so closing this as a dupe.

@kara kara closed this as completed Feb 3, 2017
@atul221282
Copy link

show stopper at the moment
capture

@spyter
Copy link

spyter commented Jun 29, 2017

Has there been a fix for this yet?

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants