-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
fix(gatsby): Refactor overlay utils #31005
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks great. Thanks!
import emitter from "../emitter" | ||
import { Indicator } from "./indicator" | ||
|
||
// no hooks because we support react versions without hooks support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not anymore (yay) :)
--purple-60: #663399; | ||
--gatsby: var(--purple-60); | ||
--purple-40: #b17acc; | ||
--purple-20: #f1defa; | ||
--dimmedWhite: rgba(255, 255, 255, 0.8); | ||
--white: #ffffff; | ||
--black: #000000; | ||
--grey-90: #232129; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, I see quite a few of unused vars we had here 🙈
Description
This is a PR in preparation of moving the
DEV_SSR
overlay to the unified look of our existing Fast Refresh overlay. It moves the sharedcss
utility and React Portal to their own files.I also updated the loading indicator to use React hooks and made the CSS variable names more declarative. Also increased the
z-index
one more level.