Skip to content

Commit ebea6a2

Browse files
committed
* Fixed issue with tip walkthrough without icon not displayed correctly
1 parent c20d055 commit ebea6a2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

css/ng-walkthrough.css

+4
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@
185185
float: right;
186186
}
187187

188+
.walkthrough-tip-done-button-no-icon{
189+
margin-top: -13px !important;
190+
}
191+
188192
.walkthrough-tip-button-image-text-box{
189193
width: 42px;
190194
height: 42px;

ng-walkthrough.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ angular.module('ng-walkthrough', [])
4141
'</div>',
4242
'<div class="walkthrough-container walkthrough-container-tip" ng-show="walkthroughType==\'tip\'">',
4343
'<div class="walkthrough-inner" ng-class="{\'walkthrough-top\': ((!forceCaptionLocation && !tipLocation) || forceCaptionLocation==\'TOP\' || tipLocation ==\'TOP\'), \'walkthrough-bottom\': (forceCaptionLocation==\'BOTTOM\' || tipLocation ==\'BOTTOM\')}">',
44-
'<img class="walkthrough-element walkthrough-tip-icon-text-box" ng-class="{\'walkthrough-tip-icon-image-front\': tipIconLocation==\'FRONT\', \'walkthrough-tip-icon-image-back\': tipIconLocation==\'BACK\'}" ng-show="icon!=\'arrow\'" ng-src="{{walkthroughIcon}}" alt="icon">',
45-
'<button class="walkthrough-done-button walkthrough-tip-done-button-text-box" type="button" ng-if="useButton" ng-click="onCloseClicked($event)" on-touch="onCloseTouched($event)">',
44+
'<img class="walkthrough-element walkthrough-tip-icon-text-box" ng-class="{\'walkthrough-tip-icon-image-front\': tipIconLocation==\'FRONT\', \'walkthrough-tip-icon-image-back\': tipIconLocation==\'BACK\'}" ng-show="icon && icon!=\'arrow\'" ng-src="{{walkthroughIcon}}" alt="icon">',
45+
'<button class="walkthrough-done-button walkthrough-tip-done-button-text-box" ng-class="{\'walkthrough-tip-done-button-no-icon\': !icon}" type="button" ng-if="useButton" ng-click="onCloseClicked($event)" on-touch="onCloseTouched($event)">',
4646
'<img class="walkthrough-tip-button-image-text-box" ng-src="{{closeIcon}}" alt="x">',
4747
'</button>',
4848
'<div class="walkthrough-element walkthrough-tip-text-box" ng-click="onWalkthroughContentClicked()" ng-class="{\'walkthrough-tip-text-box-color-black\': tipColor==\'BLACK\', \'walkthrough-tip-text-box-color-white\': tipColor==\'WHITE\'}">',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-walkthrough",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"homepage": "https://github.com/souly1/ng-walkthrough",
55
"authors": [
66
"Ophir Stern <souly01@gmail.com>"

0 commit comments

Comments
 (0)