Using .toolbar-background no longer seems to work in Ionic 4.
How does the background image get set now?
.toolbar-background {
background-image: url('assets/images/myimage.jpg');
}
Using .toolbar-background no longer seems to work in Ionic 4.
How does the background image get set now?
.toolbar-background {
background-image: url('assets/images/myimage.jpg');
}
yep .toolbar-background
doesn’t exist anymore I think in Ionic v4
because of shadow-root a lot of styling may change if you were, like me, relied on style classes
you will probably have to set a css4 variables to solve this, like
ion-toolbar {
--background: url('assets/images/myimage.jpg') no-repeat fixed center;
}
something like that
Thanks - that worked!
coolio