Skip to content

Commit

Permalink
Merged in bugfix/SHIBUI-954 (pull request #238)
Browse files Browse the repository at this point in the history
SHIBUI-954: Fixed Tooltip Presentation
  • Loading branch information
Jodie Muramoto authored and Jonathan Johnson committed Nov 21, 2018
2 parents 5f624be + 63433be commit 4bc47f6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<wizard (onNext)="next()" (onPrevious)="previous()" (onSave)="save()"></wizard>
<hr />
<div class="py-4">
<router-outlet></router-outlet>
<div class="col-11">
<router-outlet></router-outlet>
</div>
</div>
<wizard-summary
[summary]="summary$ | async"
(onPageSelect)="gotoPage($event)"
*ngIf="currentPage === 'summary'">
</wizard-summary>
</wizard-summary>
3 changes: 2 additions & 1 deletion ui/src/app/shared/component/info-icon.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
[triggers]="triggers"
[placement]="placement"
[attr.aria-flowto]="id"
role="tooltip">
role="tooltip"
container="body">
<i class="fa fa-fw fa-info-circle text-primary fa-lg"></i>
<span class="sr-only" translate="tooltip.instruction"></span>
</button>
6 changes: 2 additions & 4 deletions ui/src/app/shared/component/info-icon.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
border: none;
display: inline;
}
}


.popover .popover-body {
min-width: 160px;
}
}
3 changes: 2 additions & 1 deletion ui/src/app/shared/component/info-icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class InfoIconComponent {

id: string = String.fromCharCode(65 + Math.floor(Math.random() * 26)) + Date.now().toString();

triggers = 'mouseenter:mouseleave focus:blur';
// triggers = 'mouseenter:mouseleave focus:blur';
triggers = 'click';
container = 'body';
placement = ['top'];

Expand Down

0 comments on commit 4bc47f6

Please sign in to comment.