Skip to content

Commit

Permalink
more color
Browse files Browse the repository at this point in the history
  • Loading branch information
djechlin-mongodb committed Dec 19, 2024
1 parent 4149efd commit c6ef4ad
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/browser-repl/src/components/types/error-output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ interface ErrorOutputProps {
}

const errInfo = css({
pre: {
'&&': {
borderLeft: '3px solid',
paddingLeft: '0px',
borderColor: palette.red.light2,
borderColor: palette.red.light1,
},
});

const messageCss = css({
color: 'white',
});

export class ErrorOutput extends Component<ErrorOutputProps> {
static propTypes = {
value: PropTypes.any,
Expand All @@ -39,7 +43,7 @@ export class ErrorOutput extends Component<ErrorOutputProps> {
>
{formattedName || 'Error'}:
</a>{' '}
{message}
<span className={messageCss}>{message}</span>
</pre>
</div>
);
Expand Down Expand Up @@ -96,11 +100,11 @@ export class ErrorOutput extends Component<ErrorOutputProps> {
return (
<div>
{this.renderCollapsed(toggle)}
<div className={cx(errInfo)}>
<div className={messageCss}>
{this.formatErrorBugReportInfo()}
{this.formatErrorInfo()}
{this.formatErrorResult()}
<pre>{this.formatStack()}</pre>
<pre className={errInfo}>{this.formatStack()}</pre>
</div>
</div>
);
Expand Down

0 comments on commit c6ef4ad

Please sign in to comment.