a00d359422
Previously, the `left` positioning seemed to only work with icons which are all about the same size so the arbitrary offset worked. Now we actually position off to the left of the element and we have equal `margin-left` and `margin-right` to determine the offset. Spawned from https://github.com/matrix-org/matrix-react-sdk/pull/7339#discussion_r767154349
29 lines
540 B
Text
29 lines
540 B
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<TooltipTarget /> displays tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="right: 1024px; top: -26px; display: block;"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> renders container 1`] = `
|
|
<div
|
|
aria-describedby="test id"
|
|
class="test tooltipTargetClassName"
|
|
data-test-id="test"
|
|
tabindex="0"
|
|
>
|
|
<span>
|
|
child
|
|
</span>
|
|
<div
|
|
class="test className"
|
|
/>
|
|
</div>
|
|
`;
|