Skip to content

Fix chart's tooltip position in Firefox.

Administrator requested to merge vk/fix-bad-tooltip-position-over-charts into main

Created by: vovakulikov

Fixes https://github.com/sourcegraph/sourcegraph/issues/20098

It seems like bad position problem appears because of firefox's bug of svg.getScreenCMT() https://bugzilla.mozilla.org/show_bug.cgi?id=1610093

Since @visx/xychart tooltip uses this svg API to convert svg viewport to Dom coordinates for tooltip we have wrong wrong tooltip position. https://github.com/airbnb/visx/blob/d5fb82e42af56da4ee325ac5d2028fde52a48b01/packages/visx-event/src/localPointGeneric.ts#L12-L25

According to description of this problem of Firefox in bugzilla we have to turn off css transformation over grid item elements. (chart container) in Firefox for now.

Merge request reports

Loading