-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
stepper dependency on material icons #7384
Comments
I would be okay with a |
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
or an option to keep the numbers (no icon change). |
Any news on this? |
you can set [completed]="false" on md-step and you will have only numbers instead of icons!! |
But that would make every step look like incompleted (with the gray color), even the ones already completed. |
I was a bit reluctant on trying of course, it would've been better if it could be colored, since I'm using |
to replace the word "create" with the pen icon you need to add the google material font icon link |
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
Would someone mind please posting an example of overriding the create icon that shows for an editable step on the material 2 stepper. I've been struggling for hours trying to follow the docs and can't make it work so far @crisbeto |
Here's .scss version:
|
@cfremgen I appreciate the example. However I am looking to only override the 'edit' icon when the step is in the edit state. The docs show a way to do this somwthing like this below
but I haven't had success in implementing yet... @cfremgen @crisbeto |
I believe this is the commit you'll need crisbeto@8cc1aff But it's not in release yet. Better off waiting until this is in release, but if you need to you should be able to use my example as a starting point and only override if edit styles are applied. I am not sure though, I haven't encountered the exact scenario you're talking about. |
@cfremgen okay, thank you, I didn't notice it wasnt released yet |
any update on this? |
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes angular#7384.
Currently users are locked into using the Material `create` and `done` icon for the step headers. These changes add the ability to customize the icons by providing an `ng-template` with an override. Fixes #7384.
is any one has example to use svg-icon in mat-icon for stepper. |
with this I overwrite the material font:
with this I overwrite the contents of the icons with the font custom:
this works for my case also on IE11 |
this worked like charm |
probably you use another font-family instead default.
|
I think this is the best solution to utilize. Bcoz setting completed = "false" doesn't gives a nice UX. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
bug
What is the expected behavior?
Texts are not printed on the screen instead of the icons if the icon set is not present.
Brownie points:
I can set up another icons from another icon sets (e.g. FontAwesome)
What is the current behavior?
stepper component has the dependency on material icons. If material icons are not used, it's rendered as text on the screen.
What are the steps to reproduce?
Index.html line 24 adds the necessary icons. If that line is commented out, icons will faill and text is printed on screen instead of icon.
Plunker template: https://plnkr.co/edit/n4ry3CkDsvV22aX4h5lo?p=preview
What is the use-case or motivation for changing an existing behavior?
I want to use FontAwesome icons (and I don't want to bundle the Material icons just for this one component)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 2.0.0-beta.11
Angular 4.4.3
Is there anything else we should know?
Thanks for the Stepper component!
The text was updated successfully, but these errors were encountered: