-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request(feature:color-picker) Customizable selected color icon #129
Comments
Hi @tiaguinho Thanks for your work. This solves our Problem by being able to disable the icon. Though it would be awesome if we could use any SVG registered in MatIconRegistry, not only Material-Font-Icons because we don't use the Material-Font at all. It should be pretty easy to implement it the same way as SELECTED_COLOR_ICON. Could be SELECTED_COLOR_SVG_ICON |
You can register SVG in MatIconRegistry https://material.angular.io/components/icon/overview#svg-icons. You can test this possibility by cloning the repository and trying on the demo app. Can you make this test? Thank you. |
I think it should not work with SVGs the way its implemented right now. Check the SVG example here: https://material.angular.io/components/icon/examples mat-icon uses svgIcon-Input for SVG. Font ligatures only work with icon fonts as stated here: So it would have to be I'm not much of a fan of the mat-icon API but thats the way they decided to do it. |
Are you looking into this or should i maybe open a new Issue for the SVG-Feature? |
Please open a new issue. |
Thats great! I opened the Issue: |
There should be a way to use color-picker without material-icon-font loaded
Because in our Project we do not use the Material-Icon-Font due to only using SVGs for icons it would be great if we could change the icon shown on the currently selected color in the picker to any other mat-icon using an SVG. Rigth now material icon "done" is used but shows up as "done"-text when material-icon-font is not loaded.
The text was updated successfully, but these errors were encountered: