ui: Tooltip Bugs (#8562)

* Fix tooltip offset in Discovery Chain for Firefox Browser

* Add z-index to ember-tooltip to over over the search/sort in AppView
This commit is contained in:
Kenia 2020-08-26 10:05:09 -04:00 committed by GitHub
parent dfcd9c00cf
commit ad9f118d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -135,7 +135,7 @@
{{/if}}
{{/each}}
</svg>
<div class={{concat 'tooltip' (if activeTooltip ' active' '')}} style={{{ concat 'position: absolute;top:' y 'px;left:' x 'px;'}}}>
<div class={{concat 'tooltip' (if activeTooltip ' active' '')}} style={{{ concat 'top:' y 'px;left:' x 'px;'}}}>
<span role="tooltip">{{round tooltip decimals=2}}%</span>
</div>
{{/if}}

View File

@ -177,8 +177,8 @@ export default Component.extend({
actions: {
showSplit: function(e) {
this.setProperties({
x: e.offsetX,
y: e.offsetY - 5,
x: e.clientX,
y: e.clientY - 3,
tooltip: e.target.dataset.percentage,
activeTooltip: true,
});

View File

@ -55,4 +55,5 @@
.ember-tooltip {
padding: 12px;
max-width: 192px;
z-index: 4;
}

View File

@ -25,6 +25,10 @@
%discovery-chain [id*=':']:not(path):hover {
@extend %chain-node-active;
}
%discovery-chain .tooltip {
position: fixed;
z-index: 5;
}
%discovery-chain .tooltip.active > [role='tooltip'],
%discovery-chain .tooltip.active > [role='tooltip']::after {
@extend %blink-in-fade-out-active;