diff --git a/packages/browser-repl/src/components/shell-output-line.tsx b/packages/browser-repl/src/components/shell-output-line.tsx index 6234ec75c..7367c1d7c 100644 --- a/packages/browser-repl/src/components/shell-output-line.tsx +++ b/packages/browser-repl/src/components/shell-output-line.tsx @@ -19,8 +19,8 @@ const shellOutputLine = css({ }); const shellOutputLineError = css({ - backgroundColor: palette.red.light2, - color: palette.red.dark3, + backgroundColor: 'inherit', + color: palette.red.light1, }); const shellOutputLineIcon = css({ diff --git a/packages/browser-repl/src/components/types/error-output.tsx b/packages/browser-repl/src/components/types/error-output.tsx index 2d410a060..b8fc889b5 100644 --- a/packages/browser-repl/src/components/types/error-output.tsx +++ b/packages/browser-repl/src/components/types/error-output.tsx @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { isShouldReportAsBugError } from '@mongosh/errors'; +import { css, cx, palette } from '@mongodb-js/compass-components'; import { SimpleTypeOutput } from './simple-type-output'; import { Expandable } from '../utils/expandable'; @@ -10,6 +11,18 @@ interface ErrorOutputProps { value: any; } +const errInfoCss = css({ + '&&': { + borderLeft: '3px solid', + paddingLeft: '0px', + borderColor: palette.red.light1, + }, +}); + +const messageCss = css({ + color: palette.white, +}); + export class ErrorOutput extends Component { static propTypes = { value: PropTypes.any, @@ -30,7 +43,7 @@ export class ErrorOutput extends Component { > {formattedName || 'Error'}: {' '} - {message} + {message} ); @@ -87,11 +100,11 @@ export class ErrorOutput extends Component { return (
{this.renderCollapsed(toggle)} -
+
{this.formatErrorBugReportInfo()} {this.formatErrorInfo()} {this.formatErrorResult()} -
{this.formatStack()}
+
{this.formatStack()}
);