Commit 281d40bb by Jeffrey Phillips

Set guided tour close button styles, override hopscotch image setting.

parent 2a98c3d5
...@@ -97,8 +97,22 @@ div.hopscotch-bubble { ...@@ -97,8 +97,22 @@ div.hopscotch-bubble {
} }
.hopscotch-bubble-close { .hopscotch-bubble-close {
background: none;
color: transparent;
line-height: 0;
right: 8px; right: 8px;
text-indent: inherit;
top: 7px; top: 7px;
&:after {
color: @color-pf-black-500;
content: @pficon-var-close;
display: inline-block;
font-family: "PatternFlyIcons-webfont";
left: 7px;
line-height: 1;
position: absolute;
top: 7px;
}
} }
.hopscotch-bubble-container { .hopscotch-bubble-container {
......
...@@ -1903,7 +1903,8 @@ angular.module('openshiftCommonUI').factory('GuidedTourService', function() { ...@@ -1903,7 +1903,8 @@ angular.module('openshiftCommonUI').factory('GuidedTourService', function() {
showPrevButton: true, showPrevButton: true,
i18n: { i18n: {
nextBtn: 'Next >', nextBtn: 'Next >',
prevBtn: '< Back' prevBtn: '< Back',
closeTooltip: 'x' // this is the button text not a tooltip, hidden but must be 1 character for focus border (cannot but empty or null)
} }
}; };
hopscotchConfig = {}; hopscotchConfig = {};
......
...@@ -240,7 +240,21 @@ div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arro ...@@ -240,7 +240,21 @@ div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arro
margin-top: 2px; margin-top: 2px;
} }
div.hopscotch-bubble .hopscotch-bubble-close { div.hopscotch-bubble .hopscotch-bubble-close {
background: none;
color: transparent;
line-height: 0;
right: 8px; right: 8px;
text-indent: inherit;
top: 7px;
}
div.hopscotch-bubble .hopscotch-bubble-close:after {
color: #8b8d8f;
content: "\e60b";
display: inline-block;
font-family: "PatternFlyIcons-webfont";
left: 7px;
line-height: 1;
position: absolute;
top: 7px; top: 7px;
} }
div.hopscotch-bubble .hopscotch-bubble-container { div.hopscotch-bubble .hopscotch-bubble-container {
......
...@@ -5546,7 +5546,8 @@ angular.module('openshiftCommonUI').factory('GuidedTourService', function() { ...@@ -5546,7 +5546,8 @@ angular.module('openshiftCommonUI').factory('GuidedTourService', function() {
showPrevButton: true, showPrevButton: true,
i18n: { i18n: {
nextBtn: 'Next >', nextBtn: 'Next >',
prevBtn: '< Back' prevBtn: '< Back',
closeTooltip: 'x' // this is the button text not a tooltip, hidden but must be 1 character for focus border (cannot but empty or null)
} }
}; };
hopscotchConfig = {}; hopscotchConfig = {};
......
...@@ -2384,7 +2384,8 @@ onClose:handleTourEnd, ...@@ -2384,7 +2384,8 @@ onClose:handleTourEnd,
showPrevButton:!0, showPrevButton:!0,
i18n:{ i18n:{
nextBtn:"Next >", nextBtn:"Next >",
prevBtn:"< Back" prevBtn:"< Back",
closeTooltip:"x"
} }
}, hopscotchConfig = {}, angular.merge(hopscotchConfig, innerConfig, tourConfig), setupSteps(), makeStepTargetVisible(0), hopscotch.startTour(hopscotchConfig, 0); }, hopscotchConfig = {}, angular.merge(hopscotchConfig, innerConfig, tourConfig), setupSteps(), makeStepTargetVisible(0), hopscotch.startTour(hopscotchConfig, 0);
}, cancelTour = function() { }, cancelTour = function() {
......
...@@ -97,8 +97,22 @@ div.hopscotch-bubble { ...@@ -97,8 +97,22 @@ div.hopscotch-bubble {
} }
.hopscotch-bubble-close { .hopscotch-bubble-close {
background: none;
color: transparent;
line-height: 0;
right: 8px; right: 8px;
text-indent: inherit;
top: 7px; top: 7px;
&:after {
color: @color-pf-black-500;
content: @pficon-var-close;
display: inline-block;
font-family: "PatternFlyIcons-webfont";
left: 7px;
line-height: 1;
position: absolute;
top: 7px;
}
} }
.hopscotch-bubble-container { .hopscotch-bubble-container {
......
...@@ -18,7 +18,8 @@ angular.module('openshiftCommonUI').factory('GuidedTourService', function() { ...@@ -18,7 +18,8 @@ angular.module('openshiftCommonUI').factory('GuidedTourService', function() {
showPrevButton: true, showPrevButton: true,
i18n: { i18n: {
nextBtn: 'Next >', nextBtn: 'Next >',
prevBtn: '< Back' prevBtn: '< Back',
closeTooltip: 'x' // this is the button text not a tooltip, hidden but must be 1 character for focus border (cannot but empty or null)
} }
}; };
hopscotchConfig = {}; hopscotchConfig = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment