feat(dees-tile): add configurable overscroll handling to tile content and use it in modals

This commit is contained in:
2026-04-12 17:45:33 +00:00
parent b8a03def79
commit cd491e1517
4 changed files with 20 additions and 11 deletions

View File

@@ -153,14 +153,6 @@ export class DeesModal extends DeesElement {
overscroll-behavior: contain;
}
dees-tile::part(content) {
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: var(--dees-color-scrollbar-thumb) transparent;
}
dees-tile::part(outer) {
box-shadow:
0 0 0 1px ${cssManager.bdTheme('hsl(0 0% 0% / 0.03)', 'hsl(0 0% 100% / 0.03)')},
@@ -351,7 +343,7 @@ export class DeesModal extends DeesElement {
${minWidthStyle ? `dees-tile { min-width: ${minWidthStyle}; }` : ''}
</style>
<div class="modalContainer" @click=${this.handleOutsideClick} style="z-index: ${this.modalZIndex}">
<dees-tile class="${widthClass} ${mobileFullscreenClass}">
<dees-tile class="${widthClass} ${mobileFullscreenClass}" .overscroll=${'contain'}>
<div slot="header" class="heading">
<div class="heading-text">${this.heading}</div>
<div class="header-buttons">