From d3cd092aef5d402c53e369a67ef7ea1823936dea Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:07:05 +0300 Subject: [PATCH] fix(core): disable isObscured check for `HintPointer` (#7016) --- projects/core/directives/hint/hint-hover.directive.ts | 7 ++++++- .../demo/src/modules/charts/pie-chart/examples/2/index.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/projects/core/directives/hint/hint-hover.directive.ts b/projects/core/directives/hint/hint-hover.directive.ts index e5088be3d14c..06c2b03b0df1 100644 --- a/projects/core/directives/hint/hint-hover.directive.ts +++ b/projects/core/directives/hint/hint-hover.directive.ts @@ -31,7 +31,12 @@ export class TuiHintHoverDirective extends TuiDriver { ), ).pipe( filter(() => this.enabled), - map(value => value && !tuiIsObscured(this.el.nativeElement)), + map( + value => + value && + (this.el.nativeElement.hasAttribute('tuiHintPointer') || + !tuiIsObscured(this.el.nativeElement)), + ), tap(visible => { this.visible = visible; }), diff --git a/projects/demo/src/modules/charts/pie-chart/examples/2/index.ts b/projects/demo/src/modules/charts/pie-chart/examples/2/index.ts index 44c80ba38a99..b1d8772d09e5 100644 --- a/projects/demo/src/modules/charts/pie-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/pie-chart/examples/2/index.ts @@ -10,6 +10,6 @@ import {encapsulation} from '@demo/emulate/encapsulation'; changeDetection, }) export class TuiPieChartExample2 { - readonly value = [13769, 12367, 10172, 3018, 2592]; + readonly value = [100, 200, 300, 400, 500]; readonly labels = ['Food', 'Cafe', 'Open Source', 'Taxi', 'Other']; }