mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Change server error overlay to white to be consistent with react-error-overlay (#5104)
Makes the server error overlay white so it doesn’t flicker when the error is hydrated into the client overlay
This commit is contained in:
parent
7627eb87d6
commit
a929f8c8b7
|
@ -36,7 +36,7 @@ const StackTrace = ({ error: { name, message, stack }, info }: any) => (
|
|||
|
||||
export const styles = {
|
||||
errorDebug: {
|
||||
background: '#0e0d0d',
|
||||
background: '#ffffff',
|
||||
boxSizing: 'border-box',
|
||||
overflow: 'auto',
|
||||
padding: '24px',
|
||||
|
@ -46,14 +46,14 @@ export const styles = {
|
|||
top: 0,
|
||||
bottom: 0,
|
||||
zIndex: 9999,
|
||||
color: '#b3adac'
|
||||
color: '#000000'
|
||||
},
|
||||
|
||||
stack: {
|
||||
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", consolas, menlo-regular, monospace',
|
||||
fontSize: '13px',
|
||||
lineHeight: '18px',
|
||||
color: '#b3adac',
|
||||
color: '#777',
|
||||
margin: 0,
|
||||
whiteSpace: 'pre-wrap',
|
||||
wordWrap: 'break-word',
|
||||
|
@ -65,7 +65,7 @@ export const styles = {
|
|||
fontSize: '20px',
|
||||
fontWeight: '400',
|
||||
lineHeight: '28px',
|
||||
color: '#fff',
|
||||
color: '#000000',
|
||||
marginBottom: '0px',
|
||||
marginTop: '0px'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue