From bb6c46180d97cc105a915bcf1053c784f66a94bc Mon Sep 17 00:00:00 2001 From: NovapaX Date: Wed, 28 Feb 2018 21:56:18 +0100 Subject: [PATCH] Hide the date-clear icon and style vaadin-date-input like a paper input (#956) * styling the vaadin-date-input like a paper input. * move date-picker styles to ha-style so they get reused automatically * move vaadin date-picker-styles to thier own file. * only disable clear button on required field. and some style changes --- panels/history/ha-panel-history.html | 6 +- panels/logbook/ha-panel-logbook.html | 2 + src/resources/ha-date-picker-style.html | 94 +++++++++++++++++++++++++ 3 files changed, 98 insertions(+), 4 deletions(-) create mode 100644 src/resources/ha-date-picker-style.html diff --git a/panels/history/ha-panel-history.html b/panels/history/ha-panel-history.html index 7d38b24828..9f074eb30f 100644 --- a/panels/history/ha-panel-history.html +++ b/panels/history/ha-panel-history.html @@ -14,6 +14,7 @@ + @@ -24,10 +25,6 @@ } vaadin-date-picker { - --vaadin-date-picker-clear-icon: { - display: none; - } - margin-bottom: 24px; margin-right: 16px; max-width: 200px; } @@ -64,6 +61,7 @@ value='{{_currentDate}}' label="[[localize('ui.panel.history.showing_entries')]]" disabled='[[isLoadingData]]' + required > + @@ -70,6 +71,7 @@ value='{{_currentDate}}' label="[[localize('ui.panel.logbook.showing_entries')]]" disabled='[[isLoading]]' + required > diff --git a/src/resources/ha-date-picker-style.html b/src/resources/ha-date-picker-style.html new file mode 100644 index 0000000000..9a1233a37d --- /dev/null +++ b/src/resources/ha-date-picker-style.html @@ -0,0 +1,94 @@ + + + + + + + + + + + +