Skip to content

Commit 404a917

Browse files
authored
fix: don't override editor background colours in darkmode COMPASS-9248 COMPASS-9247 (#6993)
* don't override the stage editor container background colour in darkmode * remove the extra background on the focus editor * set the code editor in the json view dark mode to be the same colour as the background
1 parent b1103ca commit 404a917

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

packages/compass-aggregations/src/components/focus-mode/focus-mode.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ const editorAreaBaseStyles = css({
6060
paddingTop: spacing[600],
6161
});
6262

63-
const editorAreaDarkStyles = css({
64-
backgroundColor: palette.gray.dark4,
65-
});
63+
const editorAreaDarkStyles = css({});
6664

6765
const editorAreaLightStyles = css({
6866
backgroundColor: palette.gray.light3,

packages/compass-aggregations/src/components/stage-editor/stage-editor.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const editorContainerStyles = css({
3636
height: '100%',
3737
});
3838

39-
const editorContainerStylesDark = css({
40-
background: palette.gray.dark4,
41-
});
39+
const editorContainerStylesDark = css({});
4240

4341
const editorContainerStylesLight = css({
4442
background: palette.gray.light3,

packages/compass-crud/src/components/json-editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const editorStyles = css({
3737

3838
const editorDarkModeStyles = css({
3939
'& .cm-editor': {
40-
backgroundColor: `${palette.gray.dark4} !important`,
40+
backgroundColor: `${palette.black} !important`,
4141
},
4242
'& .cm-gutters': {
43-
backgroundColor: `${palette.gray.dark4} !important`,
43+
backgroundColor: `${palette.black} !important`,
4444
},
4545
});
4646

0 commit comments

Comments
 (0)