From bdbb0b4328a36a66bb492973ca72497bfd34f6ad Mon Sep 17 00:00:00 2001 From: KatriHaapalinna Date: Thu, 19 Apr 2018 15:03:16 +0300 Subject: Colorpicker validation handling (#10821) * ColorTextField, helper methods, and regex for validating and handling text input * Refactored structure to avoid creating new component for validation * Style to adapt to error indicator * Tests for validating input in ColorPickerPreview component's TextField * Merge branch 'master' into colorpicker_validation * Fix path to server class * Fix test: Submit the new value * Fix test: ignore Phantom JS * Fix hsl+hsla validation patterns to accept '%', test value tweaking * Merge branch 'master' of github.com:vaadin/framework into colorpicker_validation * Fix: remove warning when color is updated from elsewhere * Revisions: input validation only once, Logging level WARN * Revisions: unit tests for color pattern matching * Revisions: moved parsing to utility class, tests for parsing all accepted input formats * Fixed import in tests, comments * Revisions: Logger as constant, ignore utility class in serialization test * Corner case tests * Revisions: protected method for parsing error text, fix to test * Revisions: NPE fix --- themes/src/main/themes/VAADIN/themes/valo/components/_colorpicker.scss | 1 + 1 file changed, 1 insertion(+) (limited to 'themes') diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_colorpicker.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_colorpicker.scss index d6cd8ad093..c0b471d81f 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/components/_colorpicker.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/components/_colorpicker.scss @@ -189,6 +189,7 @@ width: 100% !important; height: auto !important; padding: round($v-unit-size/4); + display: inline-flex; } .#{$primary-stylename}-preview-textfield { -- cgit v1.2.3