-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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-input with md-prefix and width:100% has weird rendering #1881
Comments
Actually, it does respect baseline. Problem with md-icon is sorted by adding .md-input-prefix md-icon, .md-input-suffix md-icon {
vertical-align: text-bottom;
} |
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jan 5, 2017
Prevents the input's suffix and prefix from stretching together with their parent node and leaving some weird spacing between themselves and the input. This was a side-effect of using `display: table-cell`. Fixes angular#2493. Fixes angular#1881. Fixes angular#1421.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
The prefix on md-input should consume the space enough for the content within prefix.
I made a simple codepen of how it works in angularjs: https://codepen.io/anon/pen/VmKaNv (contrast with material2 impelmentation in plunkr below)
What is the current behavior?
there is a weird amount of space between the prefix and the placeholder text
What are the steps to reproduce?
Code to reproduce buggy behavior:
This Plunker has a simple search box with 100% width, see the preview in a large screen to be sure of behavior.
Plunker template: http://plnkr.co/edit/nCYNQGtfoZPQ04FUFy2L
What is the use-case or motivation for changing an existing behavior?
It looks ugly, also, it doesn't conform with other material design implementation (viz. in material design of angularjs)
Which versions of Angular, Material, OS, browsers are affected?
All.
Is there anything else we should know?
Nope.
The text was updated successfully, but these errors were encountered: