Skip to content

Commit 7973e5f

Browse files
committed
feat(stepper): add state input to step
feat: added error state in order to display the correct icon and a default state to display any custom state/icon refactor: add StepState type refactor: refactor getIndicatorType to become more readable feat: add stepper example using a custom state feat: add error step theme feat: update getIndicatorType logic to handle a custom state feat: add alertMessage input for the step and conditionally apply error css feat: add icon override demo example and allow any icon to be overridden fix: issue with icon colors when selected or not test: update/add unit tests for the stepper changes test: update e2e tests for the stepper changes docs(stepper): update the readme to include new functionality refactor: add missing comment refactor: use mixins for stepper theme error
1 parent 31e150d commit 7973e5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export class CdkStep implements OnChanges {
110110
*/
111111
@Input('aria-labelledby') ariaLabelledby: string;
112112

113+
/** Alert message when there's an error. */
114+
@Input() alertMessage: string;
115+
113116
/** Whether the user can return to this step once it has been marked as complted. */
114117
@Input()
115118
get editable(): boolean { return this._editable; }

0 commit comments

Comments
 (0)