From f9b49fc5f35dfd331388df76b24b91d6c11c9b2b Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 13 Oct 2020 15:36:39 +0200 Subject: [PATCH] Revert "umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198)" This reverts commit 1cd79d81af821470de2123e1c6febe2980d98111. # Conflicts: # src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html # src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html # src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html --- .../components/umbconfirmaction.directive.js | 32 ++++++-------- .../less/components/umb-confirm-action.less | 5 --- .../components/tags/umb-tags-editor.html | 5 ++- .../views/components/umb-confirm-action.html | 31 +++++--------- .../views/components/umb-groups-builder.html | 10 +++-- .../src/views/propertyeditors/grid/grid.html | 8 ++-- .../listview/layouts.prevalues.html | 42 ++++++++++--------- .../multipletextbox/multipletextbox.html | 9 ++-- 8 files changed, 64 insertions(+), 78 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbconfirmaction.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbconfirmaction.directive.js index 2f682205ad..1dcccda481 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbconfirmaction.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbconfirmaction.directive.js @@ -14,10 +14,10 @@ The prompt can be opened in four direction up, down, left or right.

+ @@ -71,23 +71,17 @@ The prompt can be opened in four direction up, down, left or right.

function link(scope, el, attr, ctrl) { - scope.clickButton = function (event) { - if(scope.onDelete) { - scope.onDelete({$event: event}); - } - } + scope.clickConfirm = function() { + if(scope.onConfirm) { + scope.onConfirm(); + } + }; - scope.clickConfirm = function() { - if(scope.onConfirm) { - scope.onConfirm(); - } - }; - - scope.clickCancel = function() { - if(scope.onCancel) { - scope.onCancel(); - } - }; + scope.clickCancel = function() { + if(scope.onCancel) { + scope.onCancel(); + } + }; } @@ -97,8 +91,6 @@ The prompt can be opened in four direction up, down, left or right.

templateUrl: 'views/components/umb-confirm-action.html', scope: { direction: "@", - show: "<", - onDelete: "&?", onConfirm: "&", onCancel: "&" }, diff --git a/src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less b/src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less index a6548123ac..112194f012 100644 --- a/src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less +++ b/src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less @@ -1,8 +1,3 @@ -//WRAPPER -.umb_confirm-action { - display: inline-block; -} - // OVERLAY .umb_confirm-action__overlay { position: absolute; diff --git a/src/Umbraco.Web.UI.Client/src/views/components/tags/umb-tags-editor.html b/src/Umbraco.Web.UI.Client/src/views/components/tags/umb-tags-editor.html index cce613782e..6251d0eed1 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/tags/umb-tags-editor.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/tags/umb-tags-editor.html @@ -12,9 +12,10 @@ - + + diff --git a/src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html b/src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html index 39864c26fd..1b88c9f988 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html @@ -1,31 +1,22 @@ -
- +
-
- - - -
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/umb-groups-builder.html b/src/Umbraco.Web.UI.Client/src/views/components/umb-groups-builder.html index d722fba7be..2fdef77928 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/umb-groups-builder.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/umb-groups-builder.html @@ -101,10 +101,10 @@
+ @@ -266,10 +266,12 @@
+ diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html index 52e1941cda..5ceb7ded4a 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html @@ -100,10 +100,10 @@
+ @@ -215,9 +215,9 @@
- + diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html index c33c3e840e..4527458d16 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html @@ -2,9 +2,9 @@
-
+
-
+
@@ -14,43 +14,45 @@ - + -
+
-
+
-
+
-
- - {{ layout.name }} - (system layout) -
+
+ + {{layout.name}} + (system layout) +
-
- -
+
+ +
-
+
- + + +
-
+
-
+
-
+
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html index 6a9826ac3c..d1c202b867 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html @@ -10,12 +10,15 @@
- +
+ +