-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/tooltip): cutoff near viewport edges (#1462)
- Loading branch information
1 parent
07653dc
commit 501cce5
Showing
16 changed files
with
145 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siemens/ix': patch | ||
--- | ||
|
||
fix(core/tooltip): cutoff near viewport edges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
packages/core/src/tests/tooltip/placement-on-edge/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" | ||
/> | ||
<title>Stencil Component Starter</title> | ||
<style> | ||
.full-size { | ||
height: 100vh; | ||
width: 100vw; | ||
} | ||
.box { | ||
padding: 2rem; | ||
position: absolute; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="full-size"> | ||
<div class="box" style="top: 0; right:0"> | ||
<ix-button variant="primary" data-tooltip="myTooltip-top"> | ||
Tooltip-position-initial-top | ||
</ix-button> | ||
<ix-tooltip placement="top" for="[data-tooltip='myTooltip-top']"> | ||
Some example content | ||
</ix-tooltip> | ||
</div> | ||
|
||
<div class="box" style="top: 0; left:0"> | ||
<ix-button variant="primary" data-tooltip="myTooltip-left"> | ||
Tooltip-position-initial-left | ||
</ix-button> | ||
<ix-tooltip placement="left" for="[data-tooltip='myTooltip-left']"> | ||
Some example content | ||
</ix-tooltip> | ||
</div> | ||
|
||
<div class="box" style="bottom: 0; left:0"> | ||
<ix-button variant="primary" data-tooltip="myTooltip-bottom"> | ||
Tooltip-position-bottom | ||
</ix-button> | ||
<ix-tooltip placement="bottom" for="[data-tooltip='myTooltip-bottom']"> | ||
Some example content | ||
</ix-tooltip> | ||
</div> | ||
|
||
<div class="box" style="bottom: 0; right:0"> | ||
<ix-button variant="primary" data-tooltip="myTooltip-right"> | ||
Tooltip-position-initial-right | ||
</ix-button> | ||
<ix-tooltip placement="right" for="[data-tooltip='myTooltip-right']"> | ||
Some example content | ||
</ix-tooltip> | ||
</div> | ||
</div> | ||
|
||
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+19.1 KB
.../tooltip-placement-near-viewport-edge-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.2 KB
...tooltip-placement-near-viewport-edge-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.3 KB
.../tooltip-placement-near-viewport-edge-2-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.5 KB
...tooltip-placement-near-viewport-edge-2-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.8 KB
.../tooltip-placement-near-viewport-edge-3-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.9 KB
...tooltip-placement-near-viewport-edge-3-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.3 KB
.../tooltip-placement-near-viewport-edge-4-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.9 KB
...tooltip-placement-near-viewport-edge-4-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.