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 header without icons #10513
Comments
There is a simple enough workaround, but it is not especially pretty:
It is actually sort of frightening that this is permissible by ts |
I think we could allow more flexibility with @crisbeto this sound reasonable to you? |
I avoided adding the ability to override the number icon, because I wasn't sure how people would be able to do custom numbering @mmalerba, but your suggestion for adding a template context variable would work. @narthur157 you can still replace the <mat-horizontal-stepper>
<ng-template matStepperIcon="edit"></ng-template>
<ng-template matStepperIcon="done"></ng-template>
<mat-step>...</mat-step>
</mat-horizontal-stepper> |
… context variables * Allows for the step number icon to be overwritten using `matStepperIcon="number"`. * Exposes the `index`, `active` and `optional` template variables to `matStepperIcon`. Fixes angular#10513.
… context variables * Allows for the step number icon to be overwritten using `matStepperIcon="number"`. * Exposes the `index`, `active` and `optional` template variables to `matStepperIcon`. Fixes angular#10513.
… context variables * Allows for the step number icon to be overwritten using `matStepperIcon="number"`. * Exposes the `index`, `active` and `optional` template variables to `matStepperIcon`. Fixes angular#10513.
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/feature request
What is the expected behavior?
Just display numbers in stepper headers
What is the current behavior?
Tries to display "create" in the icon after changing to another step
What are the steps to reproduce?
https://stackblitz.com/edit/angular-vpoj5j you can see it here
What is the use-case or motivation for changing an existing behavior?
Not everyone uses the icons
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Current. 5.2.4
Is there anything else we should know?
I know I can override the icons, however I'm unsure about changing it to always using the 'number' state.
The UX of changing the stepper to these icons doesn't really appeal to me.
The text was updated successfully, but these errors were encountered: