You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureLabel used to distinguish feature request from other issues
I thing it would be nice if you can embed md-select and in the future md-datepicker and maybe other components in md-input-container, just like you can in Material 1...
Reacted by Timothy Soehnlin, Yurii Kozhenov, Michal, fberthel, Hwamei and Daniel Oliveira
where select-input-container is a class I add to the input container. Not only does this have no effect on the extra underline, but this rule doesn't even show up in firefox's inspector as being considered for the underline element. you mention a div.md-input-underline, but there is no div in the inspector with that class; the divs' classes all start with the prefix mat-.
@gcfabri I'm sorry cannot reproduce it in plunker because official example doesn't work and I couldn't force to work it. It requires to import BrowserAnimationsModule which is not accessible from cloudflare at this moment
P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureLabel used to distinguish feature request from other issues
Activity
codef0rmer commentedon Jan 14, 2017
I know where you are coming from. I usually use
md-hintfor validation errors which is not ideal BTW. A hacky way would be,P.S. extra CSS is required to hide
div.md-input-underline;-)kryzys69 commentedon Feb 5, 2017
I thing it would be nice if you can embed
md-selectand in the futuremd-datepickerand maybe other components inmd-input-container, just like you can in Material 1...kara commentedon Feb 10, 2017
Tracking this in #2498. Closing as a dupe.
tgiddings commentedon Mar 24, 2017
@codef0rmer can you elaborate on the css to hide the fake input in your trick? I've tried variations of
where
select-input-containeris a class I add to the input container. Not only does this have no effect on the extra underline, but this rule doesn't even show up in firefox's inspector as being considered for the underline element. you mention adiv.md-input-underline, but there is no div in the inspector with that class; the divs' classes all start with the prefixmat-.antonyboom commentedon Mar 31, 2017
@tgiddings finally after couple hours, I figured out how to fix it. here is working code
style.css
gcfabri commentedon Apr 1, 2017
@antonyboom I tried this but didn't work... Could you provide a plunk?
antonyboom commentedon Apr 3, 2017
@gcfabri I'm sorry cannot reproduce it in plunker because official example doesn't work and I couldn't force to work it. It requires to import BrowserAnimationsModule which is not accessible from cloudflare at this moment
ramshinde92 commentedon Jul 6, 2017
@antonyboom Not working for me either.
jeanpchr commentedon Jul 10, 2017
@gcfabri @ramshinde92
Place the "tricky" css at the end of your material theme file, that did the "trick" for me.
M3enjamin commentedon Jul 17, 2017
for that css problem, another way is to use /deep/
like this:
.tricky-select /deep/ .mat-input-underline {
display: none;
}
mackelito commentedon Jul 17, 2017
What does /deep/ do?
willshowell commentedon Jul 17, 2017
@mackelito for components that have ViewEncapsulation, it will break through it. For example, with ViewEncapsulation,
mackelito commentedon Jul 17, 2017
Aaah Good to know! What does the "deep" stand for?
willshowell commentedon Jul 17, 2017
Presumable just the word "deep" for accessing elements that belong to "deeper" components? Note, however, that it is being deprecated. You can read more here https://angular.io/guide/component-styles#deprecated-deep--and-ng-deep
angular-automatic-lock-bot commentedon Sep 6, 2019
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.