mat stepper change stepper icon code example
Example 1: mat stepper custom icon edit
<mat-vertical-stepper>
<ng-template matStepperIcon="edit">
<mat-icon>insert_drive_file</mat-icon>
</ng-template>
<ng-template matStepperIcon="done">
<mat-icon>done_all</mat-icon>
</ng-template>
<!-- Custom icon with a context variable. -->
<ng-template matStepperIcon="number" let-index="index">
{{index + 10}}
</ng-template>
<!-- Stepper steps go here -->
</mat-vertical-stepper>
Example 2: mat stepper custom css
::ng-deep .mat-horizontal-stepper-header {
box-sizing: border-box;
flex-direction: column-reverse !important;
height: auto;
padding: 24px;
}
::ng-deep .mat-horizontal-stepper-header .mat-step-label {
padding: 0px 0px 16px !important;
}
::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after{
top: 68px !important;
}