Skip to content

Commit 404c66c

Browse files
author
Brian Vaughn
committed
Tweaked pre-style
1 parent 7b5663f commit 404c66c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/react-error-overlay/src/overlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import type { ErrorRecordReference } from './utils/errorRegister';
3535

3636
import type { StackFrame } from './utils/stack-frame';
3737
import { iframeStyle } from './styles';
38-
import { injectCss, applyStyles } from './utils/dom/css';
38+
import { applyStyles } from './utils/dom/css';
3939
import { createOverlay } from './components/overlay';
4040
import { updateAdditional } from './components/additional';
4141

packages/react-error-overlay/src/styles.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* @flow */
22
const black = '#293238',
33
darkGray = '#878e91',
4-
lightGray = '#fafafa',
54
red = '#ce1126',
65
lightRed = '#fccfcf',
76
yellow = '#fbf5b4',
@@ -64,7 +63,6 @@ const hintStyle = {
6463
};
6564

6665
const closeButtonStyle = {
67-
'font-size': '26px',
6866
color: black,
6967
'line-height': '1rem',
7068
'font-size': '1.5rem',
@@ -120,17 +118,18 @@ const secondaryErrorStyle = {
120118

121119
const omittedFramesStyle = {
122120
color: black,
123-
margin: '1.5em 0',
124121
cursor: 'pointer',
125122
};
126123

127124
const preStyle = {
128125
display: 'block',
129126
padding: '0.5em',
130-
'margin-top': '1.5em',
131-
'margin-bottom': '0px',
127+
'margin-top': '0.5em',
128+
'margin-bottom': '0.5em',
132129
'overflow-x': 'auto',
133130
'white-space': 'pre',
131+
'border-radius': '0.25rem',
132+
'background-color': 'rgba(206, 17, 38, .05)',
134133
};
135134

136135
const toggleStyle = {

0 commit comments

Comments
 (0)