mat-select custom icon
Bug, feature request, or proposal:
feature request
What is the expected behavior?
does mat-select control allow us to change icon. similar to how datepicker allows it. as shown below. https://github.com/angular/material2/tree/master/src/material-examples/datepicker-custom-icon
What is the current behavior?
we are not able to change icon which appears in mat-select
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
this would help in customize as per page theme.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5
Is there anything else we should know?
N/A
this can do it in angular 6
put this inside your mat-form-field
<mat-label>
Name
</mat-label>
then you can put whatever icon you want in there.
to disable the default icon
.mat-select-arrow {
display: none;
}
.mat-select-arrow { display: none; } doesn't help in A7 as with reactive form control it somehow hide the select value also. Can click to get dropdown but the value is never displayed.
You can use visibility: hidden or border: none for .mat-select-arrow
Like this:
.mat-select-arrow {
visibility: hidden;
}
i am not able to change the down arrow icon for the mat-select
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
Since our material components are based on the material spec, we are using the icon they use and it isn't something that is supposed to be customizable.
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.