Skip to content

Commit

Permalink
fix(editor): Fix focused state in Code node editor (#5869)
Browse files Browse the repository at this point in the history
🎨 Fix focused state in Code node
  • Loading branch information
ivov authored Mar 31, 2023
1 parent 62751b5 commit 48446f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor-ui/src/components/CodeNodeEditor/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export const CODE_NODE_EDITOR_THEME = [
'&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection': {
backgroundColor: 'var(--color-code-selection)',
},
'&.cm-editor.cm-focused': {
outline: 'none',
borderColor: 'var(--color-secondary)',
},
'.cm-activeLine': {
backgroundColor: 'var(--color-code-lineHighlight)',
},
Expand All @@ -57,6 +61,7 @@ export const CODE_NODE_EDITOR_THEME = [
'.cm-gutters': {
backgroundColor: 'var(--color-code-gutterBackground)',
color: 'var(--color-code-gutterForeground)',
borderRadius: 'var(--border-radius-base)',
},
'.cm-tooltip': {
maxWidth: BASE_STYLING.tooltip.maxWidth,
Expand Down

0 comments on commit 48446f5

Please sign in to comment.