I'm trying to change the padding off input field by changing the css4 variable but I must be doing something wrong because the padding is not changing. I'm still getting use to css4. This is my scss file.
app-page {
--padding-end: 50px;
ion-input{
padding: var(--padding-end);
}
}
ion-input {
--padding-end: 12px;
}
Did what I wanted.
Are you using SASS? Variable declaration would look like this:
app-page {
$padding-end: 50px;
ion-input{
padding: $padding-end;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With