Skip to content

Commit

Permalink
fix(toolbar): properly apply safe area and border (#20375)
Browse files Browse the repository at this point in the history
fixes #20354
  • Loading branch information
liamdebeasi authored Feb 4, 2020
1 parent a25007f commit 4971499
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/components/footer/footer.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// iOS Footer
// --------------------------------------------------

.footer-ios ion-toolbar:first-child {
.footer-ios ion-toolbar:first-of-type {
--border-width: #{$hairlines-width} 0 0;
}

Expand All @@ -21,6 +21,6 @@
}
}

.footer-ios.ion-no-border ion-toolbar:first-child {
.footer-ios.ion-no-border ion-toolbar:first-of-type {
--border-width: 0;
}
2 changes: 1 addition & 1 deletion core/src/components/footer/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ion-footer {
z-index: $z-index-toolbar;
}

ion-footer ion-toolbar:last-child {
ion-footer ion-toolbar:last-of-type {
padding-bottom: var(--ion-safe-area-bottom, 0);
}
6 changes: 3 additions & 3 deletions core/src/components/header/header.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// iOS Header
// --------------------------------------------------

.header-ios ion-toolbar:last-child {
.header-ios ion-toolbar:last-of-type {
--border-width: 0 0 #{$hairlines-width};
}

Expand All @@ -21,7 +21,7 @@
}
}

.header-ios.ion-no-border ion-toolbar:last-child {
.header-ios.ion-no-border ion-toolbar:last-of-type {
--border-width: 0;
}

Expand All @@ -36,7 +36,7 @@
top: 0;
}

.header-collapse-condense ion-toolbar:first-child {
.header-collapse-condense ion-toolbar:first-of-type {
padding-top: 7px;

z-index: 1;
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ion-header {
z-index: $z-index-toolbar;
}

ion-header ion-toolbar:first-child {
ion-header ion-toolbar:first-of-type {
padding-top: var(--ion-safe-area-top, 0);
}

0 comments on commit 4971499

Please sign in to comment.