You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add a css4 box-shadow variable for ion-header ion-toolbar:last-child or ion-footer ion-toolbar:first-child.
Ionic version:
[x] 4.x
Describe the Feature Request
Ionic 4 has no satisfying option to add a box-shadow to the header in iOS mode. Adding a box-shadow to the ion-toolbar or ion-header does not work, because it leaves an ugly navigation animation if the header is not the same size on the parent / child pages.
Describe Preferred Solution
CSS4 box-shadow variable for ion-header ion-toolbar:last-child or ion-footer ion-toolbar:first-child. This was the fix for adding a good looking box-shadow to toolbars in Ionic 3 and is prevented with the new shadow DOM.
Additional Context
The solution given in #16895 does not fix the problem because then the navigation animation looks bad.
The text was updated successfully, but these errors were encountered:
Hi Spinnenzunge, I got the same issue and I ended adding a ion-title in my ion-header, at the same level than the ion-toolbar. This is not the cleanest solution, but it works.
I give this ion-title a "shadow" attribute, that I style in the CSS (ion-title[shadow])
This is an interesting approach and would probably also work with multiple ion-toolbar elements.
My main Problem is, that you would have to add extra markup on every page you have a header where you want the shadow in. Furthermore it would probably leave an ugly empty element for screen-readers (could be hidden with aria-hidden tough, but even more markup then).
I think i will pass on the header shadow until it is properly implementable with a css 4 variable (It was possible to get itt running really well in ionic 3 with some custom CSS)
Feature Request
Please add a css4 box-shadow variable for ion-header ion-toolbar:last-child or ion-footer ion-toolbar:first-child.
Ionic version:
[x] 4.x
Describe the Feature Request
Ionic 4 has no satisfying option to add a box-shadow to the header in iOS mode. Adding a box-shadow to the ion-toolbar or ion-header does not work, because it leaves an ugly navigation animation if the header is not the same size on the parent / child pages.
Describe Preferred Solution
CSS4 box-shadow variable for ion-header ion-toolbar:last-child or ion-footer ion-toolbar:first-child. This was the fix for adding a good looking box-shadow to toolbars in Ionic 3 and is prevented with the new shadow DOM.
Additional Context
The solution given in #16895 does not fix the problem because then the navigation animation looks bad.
The text was updated successfully, but these errors were encountered: