2021-12-09 18:47:50 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-05-09 21:58:16 +08:00
|
|
|
exports[`<TooltipTarget /> displays Bottom aligned tooltip on mouseover 1`] = `
|
2021-12-09 18:47:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-10-07 10:27:28 +08:00
|
|
|
style="display: block; top: 6px; transform: translate(max(10px, min(calc(0px - 50%), calc(100vw - 100% - 10px))));"
|
2022-05-09 21:58:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> displays InnerBottom aligned tooltip on mouseover 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-10-07 10:27:28 +08:00
|
|
|
style="display: block; top: -50px; transform: translate(max(10px, min(calc(0px - 50%), calc(100vw - 100% - 10px))));"
|
2022-05-09 21:58:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> displays Left aligned tooltip on mouseover 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-08-17 21:35:33 +08:00
|
|
|
style="display: block; right: 1030px; top: 0px; transform: translateY(-50%);"
|
2022-05-09 21:58:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> displays Natural aligned tooltip on mouseover 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-08-17 21:35:33 +08:00
|
|
|
style="display: block; left: 6px; top: 0px; transform: translateY(-50%);"
|
2022-05-09 21:58:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> displays Right aligned tooltip on mouseover 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-08-17 21:35:33 +08:00
|
|
|
style="display: block; left: 6px; top: 0px; transform: translateY(-50%);"
|
2022-05-09 21:58:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> displays Top aligned tooltip on mouseover 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-10-07 10:27:28 +08:00
|
|
|
style="display: block; top: -6px; transform: translate(max(10px, min(calc(0px - 50%), calc(100vw - 100% - 10px))), -100%);"
|
2022-05-09 21:58:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> displays TopRight aligned tooltip on mouseover 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
2023-05-05 16:26:11 +08:00
|
|
|
id="test id"
|
2022-08-31 03:13:39 +08:00
|
|
|
role="tooltip"
|
2022-08-17 21:35:33 +08:00
|
|
|
style="display: block; top: -6px; right: 1024px; transform: translateY(-100%);"
|
2021-12-09 18:47:50 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Tooltip_chevron"
|
|
|
|
/>
|
|
|
|
test label
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<TooltipTarget /> renders container 1`] = `
|
|
|
|
<div
|
|
|
|
aria-describedby="test id"
|
|
|
|
class="test tooltipTargetClassName"
|
2023-03-01 23:59:27 +08:00
|
|
|
data-testid="test"
|
2021-12-09 18:47:50 +08:00
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
child
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
`;
|