-
-
Notifications
You must be signed in to change notification settings - Fork 706
NProgress example on 2-begin may be faulty #162
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
Comments
@marcosCapistrano Thanks for reporting. I will look into this later today. |
Hi @marcosCapistrano . I ran In Chapter 2 (and subsequent chapters), we meant to use an NProgress bar with a dark gray background: https://storage.googleapis.com/async-await/nprogress-dark.min.css?v=1. The two background color options are introduced in Chapter 8, when we change the bar color based on a user's choice of light or dark theme. I switched to the dark NProgress bar for Chapters 2-7. Thanks again for reporting! Note that the design is a thin bar at the top of the screen, not a "spinner". Check out this web page that demonstrates how the bar works. Click the play button for |
Oh i see! Im still early in the book so I was afraid that would be fixed on later chapters... So in chapter 8 we learn how to style it, that's awesome. EDIT: Now that I think about it, maybe it's showing a light color spinner on a light background, so that's why it isn't showing |
@marcosCapistrano You're welcome! Oh, I see what you mean by the spinner on https://ricostacruz.com/nprogress/. The NProgress bar in the book is only the thin bar at the top of the screen. No spinner. If you pull the code that I pushed yesterday and then run |
@marcosCapistrano I looked into docs and 0.2.0 does have spinner by default: https://github.com/rstacruz/nprogress#showspinner That means we probably don't see it due to styling. If you figure out how to style spinner, please let me know. I will push fix sometime in November: #163 |
Tested using the stylesheet used on their main website: https://cdn.jsdelivr.net/npm/[email protected]/nprogress.css and it worked! Dark Version: https://storage.googleapis.com/async-await/nprogress-dark.min.css?v=1 |
Thanks @marcosCapistrano ! I'll test this out later. |
@marcosCapistrano Thanks again. I tried your version with spinner. Looks good! As @tima101 noted, we will push this in our November update: #163 |
Awesome! Loving the book so far guys, great work! |
Solved in #163 |
I may be wrong but when NProgress get's rendered it:
-Hardly shows (css may be missing)
-Spinner does not show even though it's defaulted to be shown (doesn't show even if explicitly set to true)
Would also be nice to offer explanations on how to style it considering SSR, since it's a third-party library.
I ask that because my theory is that maybe it's not rendering correctly because it's styles are not being injected?
EDIT: For someone willing to test, just run 2-end and notice how NProgress is rendered (notice the lack of the spinner)
The text was updated successfully, but these errors were encountered: