diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
index b6b40492be..9e036d8798 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
@@ -105,7 +105,7 @@
$timeout(function () {
// if an element isn't set - show the popover in the center
- if(!scope.model.currentStep.element) {
+ if(scope.model.currentStep && !scope.model.currentStep.element) {
setPopoverPosition(null);
return;
}
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour/umbtourstep.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour/umbtourstep.directive.js
index e840634865..08e0a44c0b 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour/umbtourstep.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour/umbtourstep.directive.js
@@ -3,14 +3,27 @@
function TourStepDirective() {
+ function link(scope, element, attrs, ctrl) {
+
+ scope.close = function() {
+ if(scope.onClose) {
+ scope.onClose();
+ }
+ }
+
+ }
+
var directive = {
restrict: 'E',
replace: true,
transclude: true,
templateUrl: 'views/components/application/umbtour/umb-tour-step.html',
scope: {
- size: "@?"
- }
+ size: "@?",
+ onClose: "&?",
+ hideClose: "=?"
+ },
+ link: link
};
return directive;
diff --git a/src/Umbraco.Web.UI.Client/src/less/components/application/umb-tour.less b/src/Umbraco.Web.UI.Client/src/less/components/application/umb-tour.less
index 5e405c0363..d52b150f0d 100644
--- a/src/Umbraco.Web.UI.Client/src/less/components/application/umb-tour.less
+++ b/src/Umbraco.Web.UI.Client/src/less/components/application/umb-tour.less
@@ -36,6 +36,7 @@
.umb-tour-step__content {
margin-bottom: 25px;
+ font-size: 15px;
}
}
@@ -44,19 +45,36 @@
color: @gray-5;
}
+.umb-tour-step__close {
+ position: absolute;
+ top: 15px;
+ right: 15px;
+ font-size: 19px;
+ color: @gray-7;
+ cursor: pointer;
+}
+
+.umb-tour-step__close:hover,
+.umb-tour-step__close:active {
+ color: @gray-4;
+ text-decoration: none;
+}
+
.umb-tour-step__header {
- margin-top: 5px;
margin-bottom: 10px;
+ margin-top: 10px;
}
.umb-tour-step__title {
font-weight: bold;
color: @black;
font-size: 15px;
+ line-height: 1.3em;
+ width: calc(~"100% - 35px");
}
.umb-tour-step__content {
margin-bottom: 15px;
- font-size: 15px;
+ font-size: 14px;
line-height: 1.6em;
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatecontent/nodename/nodename.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatecontent/nodename/nodename.html
index 038b586d19..53badd7843 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatecontent/nodename/nodename.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatecontent/nodename/nodename.html
@@ -1,6 +1,6 @@
-
+
@@ -19,7 +19,6 @@
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/doctypename/doctypename.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/doctypename/doctypename.html
index 840b36fdea..fc76d28682 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/doctypename/doctypename.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/doctypename/doctypename.html
@@ -1,6 +1,6 @@
-
+
@@ -19,7 +19,6 @@
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/propertyname/propertyname.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/propertyname/propertyname.html
index c1701abe69..5748f65a95 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/propertyname/propertyname.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/propertyname/propertyname.html
@@ -1,6 +1,6 @@
-
+
@@ -19,7 +19,6 @@
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/tabname/tabname.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/tabname/tabname.html
index fff4f9e554..f127622a13 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/tabname/tabname.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatedoctype/tabname/tabname.html
@@ -1,6 +1,6 @@
-
+
@@ -19,7 +19,6 @@
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/foldername/foldername.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/foldername/foldername.html
index 748dbd9aab..ed0ce5d7e2 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/foldername/foldername.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/foldername/foldername.html
@@ -1,6 +1,6 @@
-
+
@@ -19,7 +19,6 @@
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/uploadimages/uploadimages.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/uploadimages/uploadimages.html
index 4ad707a316..e7e8750823 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/uploadimages/uploadimages.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintromediasection/uploadimages/uploadimages.html
@@ -1,6 +1,6 @@
-
+
@@ -19,7 +19,6 @@
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrorenderintemplate/templatetree/templatetree.html b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrorenderintemplate/templatetree/templatetree.html
index 23bdc01997..cc8896c964 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrorenderintemplate/templatetree/templatetree.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrorenderintemplate/templatetree/templatetree.html
@@ -1,5 +1,5 @@
-
+
@@ -16,10 +16,6 @@
total-steps="model.steps.length">
-
-
-
-
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-tour.html b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-tour.html
index d00c81ae70..d031d5de06 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-tour.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-tour.html
@@ -7,7 +7,7 @@
-
+
@@ -25,12 +25,11 @@
-
-
+
@@ -39,7 +38,7 @@
-
+
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/application/umbtour/umb-tour-step.html b/src/Umbraco.Web.UI.Client/src/views/components/application/umbtour/umb-tour-step.html
index dad2694db6..90423ed603 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/application/umbtour/umb-tour-step.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/application/umbtour/umb-tour-step.html
@@ -1 +1,10 @@
-
\ No newline at end of file
+
\ No newline at end of file