diff --git a/web/modals/modal.css b/web/modals/modal.css --- a/web/modals/modal.css +++ b/web/modals/modal.css @@ -24,10 +24,15 @@ } div.modalHeader { + display: flex; + flex-direction: column; + padding: 32px 32px 0 32px; +} + +div.modalHeaderTitle { display: flex; justify-content: space-between; align-items: center; - padding: 32px 32px 0 32px; } div.modalHeaderCentered { @@ -43,3 +48,10 @@ align-items: center; column-gap: 8px; } + +h2.subtitle { + font-size: var(--xs-font-12); + font-weight: 400; + line-height: 18px; + color: var(--modal-fg); +} diff --git a/web/modals/modal.react.js b/web/modals/modal.react.js --- a/web/modals/modal.react.js +++ b/web/modals/modal.react.js @@ -15,6 +15,7 @@ export type ModalOverridableProps = { +name: string, + +subtitle?: string, +icon?: Icon, +onClose: () => void, +withCloseButton?: boolean, @@ -33,6 +34,7 @@ children, onClose, name, + subtitle, icon, withCloseButton = true, modalHeaderCentered = false, @@ -66,15 +68,22 @@ return ; }, [icon]); + let subtitleNode; + if (subtitle) { + subtitleNode =

{subtitle}

; + } return (
-

- {headerIcon} - {name} -

- {cornerCloseButton} +
+

+ {headerIcon} + {name} +

+ {cornerCloseButton} +
+ {subtitleNode}
{children}