Hello to everyone, i’m working with ionic 4 with angular, and i’m having problems with the css4 encapsulation, i’ve found a solution for all the others problem, but i cannot resize a modal.
Neither the opacity has effect or the width, the chrome inspector doesn’t even show the class properties, im placing the css in global.css, file wich is working because i have other global styles for buttons and inputs an they are working really well.
Thank you! For Ionic6 I found this worked: in global.scss
.wide-modal{
–width: var(–wide-modal);
} in themes/variable.scss
:root {
–wide-modal: 60%;
}
and like you did in modalController.create, added cssClass:‘wide-modal’