Skip to content

[7.x] [ML] Fix tooltip positioning. (#49160)#49211

Merged
walterra merged 1 commit intoelastic:7.xfrom
walterra:backport/7.x/pr-49160
Oct 25, 2019
Merged

[7.x] [ML] Fix tooltip positioning. (#49160)#49211
walterra merged 1 commit intoelastic:7.xfrom
walterra:backport/7.x/pr-49160

Conversation

@walterra
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

- Moves all DOM manipulation to a ref callback for the ChartTooltip react component. The service mlChartTooltipService no longer touches the DOM, it just passed around data and triggers the chartTooltip$ observable which the ChartTooltip is subscribed to. The code infers positioning now from the tooltips parent element and we no longer rely on hard-coded Kibana classnames. Besides that the code to determine the position remains the same (with some offset tweaking).
- The mocha tests for mlChartTooltipService have been migrated to jest.
@walterra walterra added the backport This PR is a backport of another PR label Oct 24, 2019
@walterra walterra self-assigned this Oct 24, 2019
@walterra walterra added the :ml label Oct 24, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@walterra walterra merged commit 3e04aa0 into elastic:7.x Oct 25, 2019
@walterra walterra deleted the backport/7.x/pr-49160 branch October 25, 2019 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants