File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
packages/browser-repl/src/components/types Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,18 @@ interface ErrorOutputProps {
1111 value : any ;
1212}
1313
14- const errInfo = css ( {
15- pre : {
14+ const errInfoCss = css ( {
15+ '&&' : {
1616 borderLeft : '3px solid' ,
1717 paddingLeft : '0px' ,
18- borderColor : palette . red . light2 ,
18+ borderColor : palette . red . light1 ,
1919 } ,
2020} ) ;
2121
22+ const messageCss = css ( {
23+ color : palette . white ,
24+ } ) ;
25+
2226export class ErrorOutput extends Component < ErrorOutputProps > {
2327 static propTypes = {
2428 value : PropTypes . any ,
@@ -39,7 +43,7 @@ export class ErrorOutput extends Component<ErrorOutputProps> {
3943 >
4044 { formattedName || 'Error' } :
4145 </ a > { ' ' }
42- { message }
46+ < span className = { messageCss } > { message } </ span >
4347 </ pre >
4448 </ div >
4549 ) ;
@@ -96,11 +100,11 @@ export class ErrorOutput extends Component<ErrorOutputProps> {
96100 return (
97101 < div >
98102 { this . renderCollapsed ( toggle ) }
99- < div className = { cx ( errInfo ) } >
103+ < div className = { messageCss } >
100104 { this . formatErrorBugReportInfo ( ) }
101105 { this . formatErrorInfo ( ) }
102106 { this . formatErrorResult ( ) }
103- < pre > { this . formatStack ( ) } </ pre >
107+ < pre className = { errInfoCss } > { this . formatStack ( ) } </ pre >
104108 </ div >
105109 </ div >
106110 ) ;
You can’t perform that action at this time.
0 commit comments