From db84f1a0eeb76c1b4dd83b683175877a9df2b847 Mon Sep 17 00:00:00 2001 From: Yuriy Yevstihnyeyev Date: Tue, 2 Jun 2020 17:03:40 +0300 Subject: [PATCH] Add helper text slot and API (#152) * Update tests and screenshots * Add helper-text and update demos * Bump text-field and update screenshots * Skip test for safari --- bower.json | 2 +- demo/time-picker-basic-demos.html | 10 ++++++ demo/time-picker-styling-demos.html | 8 +++++ src/vaadin-time-picker.html | 10 ++++++ test/input-test.html | 29 ++++++++++++++++++ test/visual/default.html | 8 +++++ .../default-tests/default/chrome.png | Bin 16840 -> 23367 bytes .../default-tests/rtl/chrome.png | Bin 16495 -> 22763 bytes 8 files changed, 66 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 79dce26..ac54d55 100644 --- a/bower.json +++ b/bower.json @@ -31,7 +31,7 @@ "vaadin-element-mixin": "vaadin/vaadin-element-mixin#^2.4.1", "vaadin-lumo-styles": "vaadin/vaadin-lumo-styles#^1.6.0", "vaadin-material-styles": "vaadin/vaadin-material-styles#^1.3.2", - "vaadin-text-field": "vaadin/vaadin-text-field#^2.7.0-alpha2", + "vaadin-text-field": "vaadin/vaadin-text-field#^2.7.0-alpha3", "vaadin-combo-box": "vaadin/vaadin-combo-box#^5.3.0-alpha1", "vaadin-control-state-mixin": "vaadin/vaadin-control-state-mixin#^2.2.2" }, diff --git a/demo/time-picker-basic-demos.html b/demo/time-picker-basic-demos.html index 09cabf1..a2db809 100644 --- a/demo/time-picker-basic-demos.html +++ b/demo/time-picker-basic-demos.html @@ -54,6 +54,16 @@

Value Resolution

+

Helper text

+

Use the helper-text attribute or add content to the helper slot to set helper content.

+ + + +

Time Range

The min and max properties affect the range of times that will be available diff --git a/demo/time-picker-styling-demos.html b/demo/time-picker-styling-demos.html index 7c4a89c..3209464 100644 --- a/demo/time-picker-styling-demos.html +++ b/demo/time-picker-styling-demos.html @@ -32,6 +32,14 @@

Custom Theme Variant

+

Helper text position

+ + + +