From 4dec17b297f143f9fd062bb7aa651882052ad54f Mon Sep 17 00:00:00 2001 From: Daniel Echlin Date: Thu, 19 Dec 2024 17:49:16 -0500 Subject: [PATCH] more color --- .../src/components/types/error-output.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/browser-repl/src/components/types/error-output.tsx b/packages/browser-repl/src/components/types/error-output.tsx index 2e5562220..b8fc889b5 100644 --- a/packages/browser-repl/src/components/types/error-output.tsx +++ b/packages/browser-repl/src/components/types/error-output.tsx @@ -11,14 +11,18 @@ interface ErrorOutputProps { value: any; } -const errInfo = css({ - pre: { +const errInfoCss = css({ + '&&': { borderLeft: '3px solid', paddingLeft: '0px', - borderColor: palette.red.light2, + borderColor: palette.red.light1, }, }); +const messageCss = css({ + color: palette.white, +}); + export class ErrorOutput extends Component { static propTypes = { value: PropTypes.any, @@ -39,7 +43,7 @@ export class ErrorOutput extends Component { > {formattedName || 'Error'}: {' '} - {message} + {message} ); @@ -96,11 +100,11 @@ export class ErrorOutput extends Component { return (
{this.renderCollapsed(toggle)} -
+
{this.formatErrorBugReportInfo()} {this.formatErrorInfo()} {this.formatErrorResult()} -
{this.formatStack()}
+
{this.formatStack()}
);