Skip to content

Commit a7b70f6

Browse files
authored
Make trusted message visible on dark backgrounds (#12888)
1 parent 515649d commit a7b70f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/datascience-ui/interactive-common/trustMessage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export class TrustMessage extends React.PureComponent<ITrustMessageProps> {
2222
};
2323
const dynamicStyle: React.CSSProperties = {
2424
maxWidth: getMaxWidth(textSize),
25-
color: this.props.isNotebookTrusted ? undefined : 'var(--vscode-editorError-foreground)',
25+
color: this.props.isNotebookTrusted
26+
? 'var(--vscode-editor-foreground)'
27+
: 'var(--vscode-editorError-foreground)',
2628
cursor: this.props.isNotebookTrusted ? undefined : 'pointer'
2729
};
2830

0 commit comments

Comments
 (0)