From ea40cea42009ffe1ab93b2b182b80f2d84348065 Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Wed, 19 Aug 2020 13:21:53 +0200 Subject: [PATCH 1/2] Use button elements in schedule overlay (#8640) * Replace anchor elements with button elements * Apply styling to button element * Reset default button style * Add missing type attributes * Add aria-hidden attribute * Move type attribute for readability --- .../src/less/properties.less | 9 ++--- .../components/umb-date-time-picker.html | 6 +-- .../src/views/content/overlays/schedule.html | 39 ++++++++++--------- .../datepicker/datepicker.html | 17 ++++---- 4 files changed, 35 insertions(+), 36 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/less/properties.less b/src/Umbraco.Web.UI.Client/src/less/properties.less index 9e951feb1a79..dc6d2ff6cd6a 100644 --- a/src/Umbraco.Web.UI.Client/src/less/properties.less +++ b/src/Umbraco.Web.UI.Client/src/less/properties.less @@ -16,8 +16,8 @@ border-left: 1px solid @gray-10; } -.date-wrapper__date .flatpickr-input > a { - +.date-wrapper__date .flatpickr-input > a, +.date-wrapper__date .flatpickr-input > button { display: flex; align-items: center; justify-content: center; @@ -25,16 +25,15 @@ padding: 4px 15px; box-sizing: border-box; min-width: 200px; - color: @ui-action-discreet-type; border: 1px dashed @ui-action-discreet-border; border-radius: 3px; - + &:hover, &:focus { text-decoration: none; color: @ui-action-discreet-type-hover; border-color: @ui-action-discreet-border-hover; - + localize { text-decoration: none; } diff --git a/src/Umbraco.Web.UI.Client/src/views/components/umb-date-time-picker.html b/src/Umbraco.Web.UI.Client/src/views/components/umb-date-time-picker.html index 2d12673a1f51..a607ebcd3319 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/umb-date-time-picker.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/umb-date-time-picker.html @@ -1,12 +1,12 @@
- - + +
-
\ No newline at end of file + diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.html b/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.html index 404accf57c97..9693f6931152 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.html +++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.html @@ -23,25 +23,26 @@ on-close="vm.datePickerClose(vm.variants[0], 'publish')">
- - +
- +
+ @@ -55,20 +56,20 @@ on-close="vm.datePickerClose(vm.variants[0], 'unpublish')">
- - +
- +
@@ -125,16 +126,16 @@ on-open="vm.datePickerShow(variant, 'publish')" on-close="vm.datePickerClose(variant, 'publish')">
- - +
- @@ -151,18 +152,18 @@ on-open="vm.datePickerShow(variant, 'unpublish')" on-close="vm.datePickerClose(variant, 'unpublish')">
- - +
- + diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html index 4a98ba575afb..9501a6631b41 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html @@ -11,15 +11,14 @@ on-change="datePickerChange(dateStr)">
- +