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

Alternative strategy for checks #29

Open
anton-johansson opened this issue Nov 4, 2021 · 2 comments
Open

Alternative strategy for checks #29

anton-johansson opened this issue Nov 4, 2021 · 2 comments

Comments

@anton-johansson
Copy link

I would like to have something like GitHub has in their steps, see images below. Essentially, the difference is that the final step is the actually completion. So when you reach it, we're done. I want to show a check only on the last step, and I want to have the background filled when you reach that step, not when it completes.

I looked at the options available, and it doesn't look like it's possible. But maybe it wouldn't be too much work to add the support for it? Not sure how to best configure it though...

Step 1
github-2fa-wizard-1

Step 4 (completion)
github-2fa-wizard-4 \

@jeanverster
Copy link
Owner

Hey @anton-johansson thanks for pointing this out, although you can't replicate the steps as they are there exactly yet - you could do something quite similar by using custom icons and tricking it into completing before the last step.. See code sandbox below with an example:

https://codesandbox.io/s/blissful-shannon-4xr5d

Let me know if this will work for your use case

@anton-johansson
Copy link
Author

Hey @jeanverster, thanks for the quick reply!

I would say that it's not optimal, because it kind of looks like you complete two steps at once. However, I would also say that it is good enough for now. :D I would love to see some options for improving it. Do you think it's something that you would want in this library?

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