components icon indicating copy to clipboard operation
components copied to clipboard

mat-select custom icon

Open SnehalBhavsar opened this issue 8 years ago • 8 comments

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

SnehalBhavsar avatar Jul 13 '18 08:07 SnehalBhavsar

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;
}

goughjo02 avatar Sep 10 '18 08:09 goughjo02

.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.

karlmnz avatar Oct 26 '18 01:10 karlmnz

You can use visibility: hidden or border: none for .mat-select-arrow

Like this: .mat-select-arrow { visibility: hidden; }

KoziukSerhiy avatar Feb 12 '19 16:02 KoziukSerhiy

i am not able to change the down arrow icon for the mat-select

paulpinto88 avatar Apr 12 '19 13:04 paulpinto88

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.

angular-robot[bot] avatar Feb 01 '22 18:02 angular-robot[bot]

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.

angular-robot[bot] avatar Feb 22 '22 15:02 angular-robot[bot]

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.

amysorto avatar Jun 27 '22 19:06 amysorto

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.