Skip to content

Commit 89a60af

Browse files
committed
MOBILE-4857 theme: Fix popover position with CSS zoom
The previous fix for the issue contained a bug.
1 parent b18e58f commit 89a60af

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/theme/components/ion-popover.scss

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ ion-popover {
44

55
// When CSS zoom is not 100%, the calculated position is incorrect.
66
// Workaround: revert zoom on the element but keep it for children.
7-
&::part(content) {
8-
zoom: calc(1 / var(--zoom-ratio));
9-
& > * {
10-
zoom: var(--zoom-ratio);
11-
}
7+
zoom: calc(1 / var(--zoom-ratio));
8+
& > * {
9+
zoom: var(--zoom-ratio);
1210
}
1311
}
1412
&.md {

0 commit comments

Comments
 (0)