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-card-content> breaks <md-select> vertical alignment #7044

Closed
jt-helsinki opened this issue Sep 13, 2017 · 8 comments
Closed

<md-card-content> breaks <md-select> vertical alignment #7044

jt-helsinki opened this issue Sep 13, 2017 · 8 comments

Comments

@jt-helsinki
Copy link

jt-helsinki commented Sep 13, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

All inputs vertically align.

What is the current behavior?

If a select is placed next to an input inside an <md-card-content> there is an alignment issue.

What are the steps to reproduce?

See this Plunk

http://plnkr.co/edit/eVQA4NAMfWQ9kjpvl5RR?p=preview

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

Correct layout required.

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

Material 2.0.0-beta.10
Angular 4.3.6
flex-layout 2.0.0-beta.9

Is there anything else we should know?

@jt-helsinki jt-helsinki changed the title md-card breaks md-select padding md-card-content breaks md-select padding Sep 13, 2017
@jt-helsinki jt-helsinki changed the title md-card-content breaks md-select padding <md-card-content> breaks <md-select> padding Sep 13, 2017
@jt-helsinki jt-helsinki changed the title <md-card-content> breaks <md-select> padding <md-card-content> breaks <md-select> vertical alignment Sep 13, 2017
@willshowell
Copy link
Contributor

.mat-card-content sets the font size to 14px which decreases the form field's height

@jt-helsinki
Copy link
Author

For now the work around is to override the .mat-card-content style by setting the font-size to 16px. Not ideal...

@willshowell
Copy link
Contributor

I think moving select to work inside form-field will fix this (#6488). @mmalerba can you confirm?

@mmalerba
Copy link
Contributor

yep, then select will also adapt to the current font-size

@jt-helsinki
Copy link
Author

@mmalerba @willshowell OK, thanks. Hopefully in the next release.

current font-size

Do you mean the font-size of the <md-card-content>?

@willshowell
Copy link
Contributor

@raceloop yes. If inside md-card-content, both will inherit the font size of 12px and decrease in height. If outside md-card-content they will inherit whatever font size is set there (in this case, 16px).

@josephperrott
Copy link
Member

Closed as #6488 was merged.

@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 7, 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

4 participants