react-loading-overlay
react-loading-overlay copied to clipboard
spinner should be vertically centered within viewport, not within document content
If the document is longer than the viewport, the spinner can only be seen when the middle of the document is scrolled into view.
I would have expected the overlay panel to fill the viewport and float over the document (at least as an option, even if there is a good reason to have it work the current way sometimes)
Give the overlay with the background color a position of fixed. Also make sure to keep the loader component above the component you are calling it from. Use fragmentation to do this. This so that no parent styling would affect it.