Skip to content

Commit b849a09

Browse files
authored
Merge pull request #4594 from albertgasset/MOBILE-4857
MOBILE-4857 theme: Fix popover position with CSS zoom
2 parents 71932c6 + 89a60af commit b849a09

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)