Compare commits

...

2 Commits

Author SHA1 Message Date
Liam DeBeasi
7ddb1ea332 add fallback 2024-03-25 12:09:08 -04:00
Liam DeBeasi
b6b9f12199 fix(popover): viewport can be scrolled if no content present 2024-03-25 11:44:05 -04:00
2 changed files with 24 additions and 2 deletions

View File

@@ -101,8 +101,6 @@
display: flex;
flex-direction: column;
overflow: hidden;
}
// Nested Popovers

View File

@@ -375,3 +375,27 @@ ion-input input::-webkit-date-and-time-value {
width: 320px;
min-height: 320px;
}
/**
* If a popover has a child ion-content (or class equivalent) then the .popover-viewport element
* should not be scrollable to ensure the inner content does scroll. However, if the popover
* does not have a child ion-content (or class equivalent) then the .popover-viewport element
* should remain scrollable.
*/
.popover-viewport:has(> ion-content),
.popover-viewport:has(> .ion-content-scroll-host) {
overflow: hidden;
}
/**
* :has has cross-browser support, but it is still relatively new. As a result,
* we should fallback to the old behavior for environments that do not support :has.
* Developers can explicitly enable this behavior by setting overflow: visible
* on .popover-viewport if they know they are not going to use an ion-content.
* TODO FW-XXXX Remove this
*/
@supports not selector(:has(> ion-content)) {
.popover-viewport {
overflow: hidden;
}
}