@@ -41,7 +84,11 @@
- Test safe-area handling in modals.
+ Test safe-area handling in modals. Red overlays indicate safe areas (top, bottom, left, right).
+
+ Landscape simulation: Left and right safe areas are set to 44px to test devices with side
+ notches.
+
diff --git a/core/src/components/popover/test/safe-area/index.html b/core/src/components/popover/test/safe-area/index.html
index 271d5fa02c..cb65329f5f 100644
--- a/core/src/components/popover/test/safe-area/index.html
+++ b/core/src/components/popover/test/safe-area/index.html
@@ -16,12 +16,13 @@
/**
* Simulate safe-area insets for testing.
* These values represent typical Android edge-to-edge safe areas.
+ * Left/right values simulate landscape orientation or devices with side notches.
*/
:root {
--ion-safe-area-top: 44px;
--ion-safe-area-bottom: 34px;
- --ion-safe-area-left: 0px;
- --ion-safe-area-right: 0px;
+ --ion-safe-area-left: 44px;
+ --ion-safe-area-right: 44px;
}
/* Visual indicator for safe areas */
@@ -46,6 +47,20 @@
height: var(--ion-safe-area-bottom);
}
+ .safe-area-left {
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: var(--ion-safe-area-left);
+ }
+
+ .safe-area-right {
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: var(--ion-safe-area-right);
+ }
+
/* Position triggers at different locations */
.bottom-trigger {
position: fixed;
@@ -67,6 +82,8 @@
+
+
@@ -77,7 +94,11 @@
Test that popovers are positioned away from unsafe areas (shown in red).
- The popover should be moved up/down to avoid overlapping the safe-area zones.
+ The popover should be moved up/down/left/right to avoid overlapping the safe-area zones.
+
+ Landscape simulation: Left and right safe areas are set to 44px to test devices with side
+ notches.
+