Skip to content
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

Add a "disabled" step state #114

Open
miprib opened this issue Apr 25, 2022 · 2 comments
Open

Add a "disabled" step state #114

miprib opened this issue Apr 25, 2022 · 2 comments

Comments

@miprib
Copy link

miprib commented Apr 25, 2022

We have a use case where we need to disable a whole step. Refactoring it to sub-steps is not a good solution. In the documentation a disabled step state is shown. However, it is either not supported or not clear how to implement:
image

For our use case, we created a specific CanActivate guard to skip disabled steps. However, it would be nice to have a visual indication for this (e.g. like in the picture above).

@hjalmers
Copy link
Contributor

Yeah I don't remember why we haven't added a disabled state. Typically we don't disable buttons, links etc. without user interaction i.e. we disable after user interaction together with a toast or alert letting the user know why it's disabled. It would be easy to implement it as a new state, just like info, success etc. that could be used to mark it as disabled.

I guess using, next and previous actions would need some tweaking too to cater for steps in the middle being disabled. How do you intend to explain why a step is disabled/skipped?

@miprib
Copy link
Author

miprib commented Apr 26, 2022

Yeah, using next/previous actions (or the left navigation) would require clever CanActivate guards (or another solution). Regarding the explanation, a tooltip (hover on "disabled" state icon) & toast (when the user triggers a "disabled" state) could be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants