UX: fallback max-height for modal style (#29321)

This commit is contained in:
Kris 2024-10-21 21:09:29 -04:00 committed by GitHub
parent f9d86686ae
commit fa42565515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -26,9 +26,9 @@
pointer-events: auto;
box-sizing: border-box;
margin: 0 auto;
max-height: 80vh;
background-color: var(--secondary);
box-shadow: var(--shadow-modal);
max-height: var(--modal-max-height, 80vh); // unset, optional theme utility
}
&__header {

View File

@ -5,9 +5,7 @@
&__container {
max-width: var(--modal-max-width);
min-width: var(--modal-min-width);
// height values add optional theme utility
max-height: var(--modal-max-height);
min-height: var(--modal-min-height);
min-height: var(--modal-min-height); // unset, optional theme utility
.d-modal.-large & {
max-width: 800px;
}