-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Bug Report
Ionic version:
[x] 5.x
Current behavior:
I am applying (global.scss)
ion-popover {
div.popover-content {
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
}
}
to my Popovers to center them as described in #15036.
The CSS transform is not applied in chrome. It is applied in firefox tho.
Expected behavior:
CSS transform should apply consistently in firefox and chrome. Somehow it is not applying in chrome with ionic 5. In ionic 4 it worked.
Steps to reproduce:
- Apply transform in the global.scss as shown above.
- Open a popover.
Related code:
Clone the prepared GitHub repository and have a look yourself with chrome and firefox.
https://github.com/timKraeuter/popover-transform-ionic5
Other information:
I have opened this thread in the forum:
https://forum.ionicframework.com/t/popover-centering-not-working-after-ionic-4-to-5-update/189017
But I think it is a bug as it worked in ionic 4 but not in 5.
Ionic info:
Ionic:
Ionic CLI : 5.4.4 (C:\Users\TimKräuter\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 5.1.0
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 8.3.26
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0
Utility:
cordova-res : not installed
native-run : 1.0.0
System:
NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10