ionic-team / ionic-team/ionic-framework

CSS4 box-shadow variable for toolbar-background

Ouverte
#17,544 2 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
package: core type: feature request
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

# 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.

![ionic4-shadow-problem](https://user-images.githubusercontent.com/11189008/53091077-4cc1db80-3511-11e9-84c8-f511a6d37c23.gif)

**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 https://github.com/ionic-team/ionic/issues/16895 does not fix the problem because then the navigation animation looks bad.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.