Skip to content

Commit 239142f

Browse files
committed
feat(modal): Adding same modal variable values to header and content when inside modal
1 parent 407f726 commit 239142f

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

core/src/components/content/content.ionic.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
// Ionic Content
44
// --------------------------------------------------
5-
6-
ion-content {
7-
8-
&.in-modal {
9-
background: inherit;
10-
}
11-
}
5+
6+
:host(.in-modal) {
7+
--background: var(--ion-bg-surface-default, var(--ion-primitives-base-white));
8+
}

core/src/components/header/header.ionic.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ ion-header {
1313
}
1414

1515
&.in-modal {
16-
background: inherit;
16+
--background: var(--ion-bg-surface-default, var(--ion-primitives-base-white));
1717
}
1818
}
1919

2020
ion-toolbar + ion-toolbar {
2121
--padding-start: #{globals.$ion-space-400};
2222
--padding-end: #{globals.$ion-space-400};
23-
}
23+
}

0 commit comments

Comments
 (0)