fix(editor): Fix focused state in Code node editor (#5869)

🎨 Fix focused state in Code node
This commit is contained in:
Iván Ovejero 2023-03-31 16:44:26 +02:00 committed by GitHub
parent 62751b5a0b
commit 48446f5d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)',
},
@ -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,