Skip to content

Commit

Permalink
fix: remove the update editor colour overrides COMPASS-7446 (#5108)
Browse files Browse the repository at this point in the history
* fix the update editor line numbers

* remove the update editor colour overrides

* remove the dark editor container override
  • Loading branch information
lerouxb authored Nov 14, 2023
1 parent cbb9d01 commit 52e8bf7
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/compass-crud/src/components/bulk-update-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ const codeContainerStyles = css({
paddingBottom: spacing[2],
});

const codeDarkContainerStyles = css({
background: palette.gray.dark4,
});
const codeDarkContainerStyles = css({});

const codeLightContainerStyles = css({
backgroundColor: palette.gray.light3,
Expand All @@ -75,18 +73,6 @@ const multilineContainerStyles = css({
maxHeight: spacing[4] * 20,
});

// We use custom color here so need to disable default one that we use
// everywhere else
const codeEditorStyles = css({
background: 'transparent !important',
'& .cm-gutters': {
background: 'transparent !important',
},
'& .cm-editor': {
background: 'transparent !important',
},
});

const bannerContainerStyles = css({
// don't jump when an error appears
minHeight: spacing[4] * 2 + 2,
Expand Down Expand Up @@ -218,7 +204,6 @@ export default function BulkUpdateDialog({
id="bulk-update-update"
data-testid="bulk-update-update"
onBlur={() => ({})}
className={codeEditorStyles}
annotations={annotations}
/>

Expand Down

0 comments on commit 52e8bf7

Please sign in to comment.