From fd6220398e0ff2448d61d438daba9e3dee5ac03c Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 30 Jan 2021 20:25:18 -0600 Subject: [PATCH] feat: undefined type --- packages/entity/src/behavior-components/expression.jsx | 1 + packages/entity/src/behavior-components/expression.scss | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/entity/src/behavior-components/expression.jsx b/packages/entity/src/behavior-components/expression.jsx index 6d3f7ba..cb531b1 100644 --- a/packages/entity/src/behavior-components/expression.jsx +++ b/packages/entity/src/behavior-components/expression.jsx @@ -274,6 +274,7 @@ const Expression = ({ className={classnames( 'expression', {'wrong-type': realType !== type}, + {'undefined-type': 'undefined' === realType}, )} > {Renderables} diff --git a/packages/entity/src/behavior-components/expression.scss b/packages/entity/src/behavior-components/expression.scss index e44f7a8..34f04e5 100644 --- a/packages/entity/src/behavior-components/expression.scss +++ b/packages/entity/src/behavior-components/expression.scss @@ -7,7 +7,11 @@ color: #00bdd6; } &.wrong-type { - background-color: rgba(255, 0, 0, 0.4); + background-color: rgb(180, 0, 0); + padding: 0.5em; + } + &.undefined-type { + background-color: rgb(180, 180, 0); padding: 0.5em; } > .expression {