fix(codemirror-autocomplete): show selection background on hover for options (#1134)

This fix if merged shows the selection background by hovering on autocomplete
options.

Ref: #946
This commit is contained in:
Thakur Karthik 2020-10-12 13:49:29 +05:30 committed by GitHub
parent 1cafe307d5
commit d476bb14bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,12 @@ export const HintStyles = createGlobalStyle<{ editorTheme: EditorTheme }>`
}
.CodeMirror-Tern-completion {
padding-left: 22px !important;
&:hover{
background: ${props =>
props.editorTheme === EditorTheme.DARK
? "rgba(244,244,244,0.2)"
: "rgba(128,136,141,0.2)"};
}
}
.CodeMirror-Tern-completion:before {
left: 4px !important;