Skip to content

Commit

Permalink
chore: change hideWhenReferenceHidden default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
rivka-ungar committed Sep 3, 2024
1 parent 2da23ce commit 5622aa6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Snapshot Diff:
/>
+ <span
+ class="monday-style-dialog-content-wrapper contentWrapper"
+ data-popper-reference-hidden="false"
+ data-testid="tooltip"
+ style="position: absolute; left: 0px; top: 0px;"
+ >
Expand Down Expand Up @@ -87,6 +88,7 @@ Snapshot Diff:
/>
- <span
- class="monday-style-dialog-content-wrapper contentWrapper"
- data-popper-reference-hidden="false"
- data-testid="tooltip"
- style="position: absolute; left: 0px; top: 0px;"
- >
Expand Down Expand Up @@ -125,6 +127,7 @@ Snapshot Diff:
/>
+ <span
+ class="monday-style-dialog-content-wrapper contentWrapper"
+ data-popper-reference-hidden="false"
+ data-testid="tooltip"
+ style="position: absolute; left: 0px; top: 0px;"
+ >
Expand Down Expand Up @@ -163,6 +166,7 @@ Snapshot Diff:
/>
- <span
- class="monday-style-dialog-content-wrapper contentWrapper"
- data-popper-reference-hidden="false"
- data-testid="tooltip"
- style="position: absolute; left: 0px; top: 0px;"
- >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Snapshot Diff:
/>
+ <span
+ class="monday-style-dialog-content-wrapper contentWrapper"
+ data-popper-reference-hidden="false"
+ data-testid="tooltip"
+ style="position: absolute; left: 0px; top: 0px;"
+ >
Expand Down Expand Up @@ -98,6 +99,7 @@ Snapshot Diff:
/>
+ <span
+ class="monday-style-dialog-content-wrapper contentWrapper"
+ data-popper-reference-hidden="false"
+ data-testid="tooltip"
+ style="position: absolute; left: 0px; top: 0px;"
+ >
Expand Down Expand Up @@ -136,6 +138,7 @@ Snapshot Diff:
/>
- <span
- class="monday-style-dialog-content-wrapper contentWrapper"
- data-popper-reference-hidden="false"
- data-testid="tooltip"
- style="position: absolute; left: 0px; top: 0px;"
- >
Expand Down Expand Up @@ -174,6 +177,7 @@ Snapshot Diff:
/>
+ <span
+ class="monday-style-dialog-content-wrapper contentWrapper"
+ data-popper-reference-hidden="false"
+ data-testid="tooltip"
+ style="position: absolute; left: 0px; top: 0px;"
+ >
Expand Down Expand Up @@ -284,9 +288,10 @@ Snapshot Diff:
role="slider"
style="left: 65%;"
tabindex="0"
- />
/>
- <span
- class="monday-style-dialog-content-wrapper contentWrapper"
- data-popper-reference-hidden="false"
- data-testid="tooltip"
- style="position: absolute; left: 0px; top: 0px;"
- >
Expand All @@ -306,7 +311,7 @@ Snapshot Diff:
- class="arrow arrow dark"
- data-placement="top"
- style="position: absolute;"
/>
- />
- </div>
- </span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/Tipseen/Tipseen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const Tipseen: VibeComponent<TipseenProps> & {
showTrigger = [],
width,
moveBy,
hideWhenReferenceHidden = true,
hideWhenReferenceHidden = false,
tip = true,
tooltipArrowClassName,
modifiers = [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ exports[`Snapshot tests Tipseen tests renders correctly with dark close button t
/>
<span
class="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden="true"
data-popper-reference-hidden="false"
data-testid="tooltip"
style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 4px);"
>
Expand Down Expand Up @@ -149,6 +149,7 @@ exports[`Snapshot tests Tipseen tests renders correctly with dark close button t
exports[`Snapshot tests Tipseen tests renders correctly with floating variation 1`] = `
<span
class="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden="false"
data-testid="tooltip"
style="position: absolute; left: 0px; top: 0px;"
>
Expand Down Expand Up @@ -213,6 +214,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without close 1`] = `
/>
<span
class="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden="false"
data-testid="tooltip"
style="position: absolute; left: 0px; top: 0px;"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class Tooltip extends PureComponent<TooltipProps> {
withoutDialog: false,
containerSelector: "#tooltips-container",
tip: true,
hideWhenReferenceHidden: true,
hideWhenReferenceHidden: false,
modifiers: new Array<Modifier<unknown>>(),
showTrigger: Tooltip.hideShowTriggers.MOUSE_ENTER,
hideTrigger: Tooltip.hideShowTriggers.MOUSE_LEAVE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`Tooltip renders correctly with data-testid 1`] = `
/>,
<span
className="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden={null}
data-popper-reference-hidden={false}
data-testid="test"
onClickCapture={[Function]}
style={
Expand Down Expand Up @@ -127,7 +127,7 @@ exports[`Tooltip renders correctly with position 1`] = `
/>,
<span
className="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden={null}
data-popper-reference-hidden={false}
data-testid="tooltip"
onClickCapture={[Function]}
style={
Expand Down Expand Up @@ -183,7 +183,7 @@ exports[`Tooltip renders correctly with style 1`] = `
/>,
<span
className="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden={null}
data-popper-reference-hidden={false}
data-testid="tooltip"
onClickCapture={[Function]}
style={
Expand Down Expand Up @@ -244,7 +244,7 @@ exports[`Tooltip renders correctly with theme 1`] = `
/>,
<span
className="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden={null}
data-popper-reference-hidden={false}
data-testid="tooltip"
onClickCapture={[Function]}
style={
Expand Down Expand Up @@ -312,7 +312,7 @@ exports[`Tooltip renders correctly without arrow 1`] = `
/>,
<span
className="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden={null}
data-popper-reference-hidden={false}
data-testid="tooltip"
onClickCapture={[Function]}
style={
Expand Down

0 comments on commit 5622aa6

Please sign in to comment.