Add the error style to bindings (#1711)

This commit is contained in:
akash-codemonk 2020-11-12 18:53:49 +05:30 committed by GitHub
parent fc29a31cd4
commit 86a419d42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,10 +163,16 @@ export const EditorWrapper = styled.div<{
color: #FFFFFF;
}
.binding-brackets {
color: ${props =>
props.editorTheme === EditorTheme.DARK
? props.theme.colors.bindingTextDark
: props.theme.colors.bindingText};
${props =>
props.hasError
? `
color: ${props.theme.colors.error};
`
: `color: ${
props.editorTheme === EditorTheme.DARK
? props.theme.colors.bindingTextDark
: props.theme.colors.bindingText
};`}
font-weight: 700;
}
.datasource-highlight {