fix(header): do not apply safe area padding to collapsible large title toolbar (#28143)

This commit is contained in:
Liam DeBeasi
2023-09-07 16:12:27 -04:00
committed by GitHub
parent 921faac009
commit 128617512c
5 changed files with 15 additions and 0 deletions

View File

@@ -51,6 +51,12 @@
}
.header-collapse-condense ion-toolbar:first-of-type {
/**
* The toolbar that contains the collapsible
* large title should not have safe area padding applied.
*/
padding-top: 0px;
z-index: 1;
}

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -12,6 +12,15 @@
<script src="../../../../../scripts/testing/scripts.js"></script>
<script nomodule src="../../../../../dist/ionic/ionic.js"></script>
<script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
<style>
/**
* The large title should not have safe
* are applied since it is in the content.
*/
:root {
--ion-safe-area-top: 40px;
}
</style>
</head>
<body>