md-input-container md-input-focused not respecting md-accent/md-hue/md-warn
md-input-container.md-default-theme:not(.md-input-invalid).md-input-focused md-icon
and
md-input-container.md-default-theme:not(.md-input-invalid).md-input-focused
Needs modifiers for md-accent, md-hue, and md-warn. Using an md-accent (green) on a toolbar with an input shows blue. Expected it to be a shade of green, both for the icon and the input underline.
http://plnkr.co/edit/JNXuFxkckkDilzGrqMVI?p=preview
@robertbaker - you are the component-theme "patrol officer". Thank you for these.
If you change the default hue of your color, it doesn't get applied to the focused input. See http://codepen.io/anon/pen/KpRXeO
Hello, I am facing this issue also. Right now I am overriding the class names. Any timeline for this fix? Thanks!!
I think this is the same as the issue I'm facing. I'm new to angular-material, so please bear with me.
My requirement: I want a search input in the toolbar. I'm using the pink theme. The HTML snippet looks like this:
<div layout="row">
<i class="material-icons">attach_file</i>
<h1 class="md-headline no-margin"> My Transactions </h1>
</div>
<md-input-container class="md-primary">
<label>Search</label>
<input type="text" ng-model="search.keyword">
</md-input-container>
When not focused, this shows up like this:

When input is focused and I start typing, it shows up like this:

I'd expect the search label and text to be white.. am I missing something? I ended up doing something ugly like this in the stylesheet and added toolbar-search to the md-input-container. Is there a nicer way to do this?
md-input-container.toolbar-search > input,
md-input-container.toolbar-search > label,
md-input-container.toolbar-search.md-input-has-value > label,
md-input-container.toolbar-search.md-input-focused > label,
md-input-container.toolbar-search.md-input-focused > input.md-input,
md-input-container.toolbar-search > md-select > md-select-value,
md-input-container.toolbar-search > md-select:focus > md-select-value,
md-input-container.toolbar-search > md-select > md-select-value.md-select-placeholder,
md-input-container.toolbar-search > md-select:not([disabled]):focus > md-select-value
{
color: white;
border-color: white;
border-bottom-width: 1px;
}
@snarayanank2 I think your override is probably necessarily. An input's label is meant to be is contrasted differently from inout's text, or other text on the screen.
See:
https://www.google.com/design/spec/components/text-fields.html#text-fields-labels https://www.google.com/design/spec/components/text-fields.html#text-fields-required-fields
You may be able to create a specific theme for the md-input-container, but I think there will always (and probably should always) be a contrast difference between the label and the text.
If your label and text were white and the user typed "Search" into the search box, it wouldn't be visually clear what happened.
@langdonx thanks for the link. Makes sense that label and border color shouldn't be white as I originally thought. However, current behavior doesn't seem right.
- The bottom border basically disappears when I start typing in the search box and so does the label (both of them are colored pink so can't see them)
- Text in the input area is black
I think this issue should be re-opened, this is something so simple with plain HTML and CSS and isn't material design all about simplicity?