mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
0c850b2f13
* show tooltips on hover in eventtile Signed-off-by: Kerry Archibald <kerrya@element.io> * use tooltip props pass thru * use tooltiptarget in InfoTooltip Signed-off-by: Kerry Archibald <kerrya@element.io> * use target in TestWithTooltip Signed-off-by: Kerry Archibald <kerrya@element.io> * tsc fixes Signed-off-by: Kerry Archibald <kerrya@element.io> * test tooltip target Signed-off-by: Kerry Archibald <kerrya@element.io> * lint fix Signed-off-by: Kerry Archibald <kerrya@element.io> * rename tooltip handlers Signed-off-by: Kerry Archibald <kerrya@element.io> * update copyright to 2021 Signed-off-by: Kerry Archibald <kerrya@element.io>
30 lines
540 B
Plaintext
30 lines
540 B
Plaintext
// 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: 1008px; 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>
|
|
`;
|