summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/VAADIN/themes')
-rw-r--r--WebContent/VAADIN/themes/base/grid/grid.scss15
-rw-r--r--WebContent/VAADIN/themes/valo/components/_grid.scss11
2 files changed, 26 insertions, 0 deletions
diff --git a/WebContent/VAADIN/themes/base/grid/grid.scss b/WebContent/VAADIN/themes/base/grid/grid.scss
index a79420f7a9..e4a4a1d920 100644
--- a/WebContent/VAADIN/themes/base/grid/grid.scss
+++ b/WebContent/VAADIN/themes/base/grid/grid.scss
@@ -266,6 +266,21 @@ $v-grid-editor-background-color: $v-grid-row-background-color !default;
max-width: 100%;
}
}
+
+ .error::before {
+ position: absolute;
+ display: block;
+ height: 0;
+ width: 0;
+ content: "";
+ border-top: 5px solid red;
+ border-right: 5px solid transparent;
+ }
+
+ .error,
+ .error > input {
+ background-color: #fee;
+ }
}
.#{$primaryStyleName}-editor-footer {
diff --git a/WebContent/VAADIN/themes/valo/components/_grid.scss b/WebContent/VAADIN/themes/valo/components/_grid.scss
index c481f127a8..4cac9c5e43 100644
--- a/WebContent/VAADIN/themes/valo/components/_grid.scss
+++ b/WebContent/VAADIN/themes/valo/components/_grid.scss
@@ -102,6 +102,17 @@ $v-grid-animations-enabled: $v-animations-enabled !default;
height: 100%;
vertical-align: middle;
}
+
+ .error::before {
+ border-top: round($v-unit-size / 4) solid $v-error-indicator-color;
+ border-right: round($v-unit-size / 4) solid transparent;
+ }
+
+ .error,
+ .error > input {
+ // taken from @mixin valo-textfield-error-style()
+ background-color: scale-color($v-error-indicator-color, $lightness: 98%);
+ }
.v-textfield,
.v-textfield-focus,