Skip to content

Make md-select, md-input, md-checkbox, md-radio-button aligned in flex container - #2309

Closed
tinayuangao wants to merge 4 commits into
angular:masterfrom
tinayuangao:input-align
Closed

tinayuangao wants to merge 4 commits into
angular:masterfrom
tinayuangao:input-align

Conversation

@tinayuangao

Copy link
Copy Markdown
Contributor

Fixes #2124

R: @jelbourn @kara

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 21, 2016
@tinayuangao
tinayuangao requested review from jelbourn and kara December 21, 2016 01:23
Comment thread src/lib/checkbox/checkbox.scss Outdated
}

md-checkbox {
margin: 16px 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't do this- none of the components can define a margin on their outer element.

Comment thread src/lib/select/select.scss Outdated

md-select {
display: inline-block;
margin: 16px 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about margin

@import '../core/a11y/a11y';

$md-select-trigger-height: 30px !default;
$md-select-trigger-height: 27px !default;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may have to think more about how we want to approach this- the md-input changes its size based on the current font size, so this may only look right with a specific size

@jelbourn

Copy link
Copy Markdown
Contributor

@tinayuangao can you remind me of the status on this PR?

@tinayuangao

Copy link
Copy Markdown
Contributor Author

@jelbourn The md-select, md-input, md-checkbox, md-radio-button are not aligned in flex-box because they have different height. We don't want to add extra margin and need to think about a better solution.

@kara kara added in progress This issue is currently in progress and removed pr: needs review labels Feb 7, 2017
@kara
kara removed their request for review February 7, 2017 18:38
@mmalerba

Copy link
Copy Markdown
Contributor

@tinayuangao is this PR still alive?

@tinayuangao

Copy link
Copy Markdown
Contributor Author

This is not a desired fix. Close it for now

@angular-automatic-lock-bot

Copy link
Copy Markdown

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

cla: yes PR author has agreed to Google's Contributor License Agreement in progress This issue is currently in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input components (md-input, md-select, md-checkbox etc) aren't aligned in a flex container...

6 participants