Skip to content

Commit

Permalink
feat(modal): add --min-height-window var (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturo Castillo Delgado authored Jul 8, 2022
1 parent f75e495 commit bb48463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/components/modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
);

--max-height-window: calc(100vh - (2 * var(--telekom-spacing-unit-x20)));
--min-height-window: ; /* undefined by design */
--radius-window: var(--telekom-radius-large);
--box-shadow-window: var(--telekom-shadow-top);
--background-window: var(--telekom-color-background-surface);
Expand Down Expand Up @@ -116,13 +117,15 @@
background-color: var(--background-window);
color: var(--color-window);
max-height: var(--max-height-window);
min-height: var(--min-height-window);
border-radius: var(--radius-window);
box-shadow: var(--box-shadow-window);
}

.modal__window .modal__body-wrapper {
overflow-y: auto;
flex-shrink: 1;
flex-grow: 1;
}

.modal--size-small .modal__window {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export const Template = (args, context) => ({
);

--max-height-window: calc(100vh - (2 * var(--telekom-spacing-unit-x20)));
--min-height-window: ; /* undefined by design */
--radius-window: var(--telekom-radius-large);
--box-shadow-window: var(--telekom-shadow-top);
--background-window: var(--telekom-color-background-surface);
Expand Down

0 comments on commit bb48463

Please sign in to comment.