I'm using angular material for designing my project. Now I want an input for searching in my toolbar, just like youtube.
My code:
<md-list flex-offset="10">
<md-list-item layout-align="start center">
<md-input-container md-no-float flex>
<input type="text" placeholder="Search" flex>
</md-input-container>
<md-button> test </md-button>
</md-list-item>
</md-list>
The toolbar tags before my md-list looks like this:
<md-toolbar layout="row" flex style="max-height: 60px;">
<div class="md-toolbar-tools">
What I've tried:
Problem:
The input group won't center vertically, and this is what I'm after. Every other directive I've tried centers perfectly like the md-button.
Is this a bug or am I doing something wrong?
Edit (Added picture comparing, md-input-container, input, md-button):

Did You try
md-input-container .md-errors-spacer{
min-height: 0px !important;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With