Skip to content

Commit 0379977

Browse files
committed
feat(app): adds _forceStatusbarPadding for ionic lab
1 parent 8796f9f commit 0379977

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

core/src/components/app/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
html.plt-mobile ion-app {
33
user-select: none;
44
}
5+
6+
ion-app.force-statusbar-padding {
7+
--ion-safe-area-top: 20px;
8+
}

core/src/components/app/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class App implements ComponentInterface {
3131
return {
3232
class: {
3333
'ion-page': true,
34+
'force-statusbar-padding': this.config.getBoolean('_forceStatusbarPadding')
3435
}
3536
};
3637
}

core/src/components/menu/test/basic/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
menu.open('start');
109109
}
110110
function openEnd() {
111-
debugger;
112111
console.log('Open end menu');
113112
menu.open('end');
114113
}

core/src/utils/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export interface IonicConfig {
4848
popoverLeave?: string;
4949
toastLeave?: string;
5050
pickerLeave?: string;
51+
52+
_forceStatusbarPadding?: boolean;
5153
}
5254

5355
export function setupConfig(config: IonicConfig) {

0 commit comments

Comments
 (0)