From ac21728e7a20294b69a7698bcbe2f95e0c2d55d9 Mon Sep 17 00:00:00 2001 From: geethag-tw Date: Wed, 10 Jul 2024 17:22:19 +0530 Subject: [PATCH] feat(Modal): [BLA-803] Add slot for icons in modal header --- .../src/components/modal/modal.scss | 14 ++++++-- .../src/components/modal/modal.tsx | 36 ++++++++++--------- packages/core-components/src/html/status.html | 1 + 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/packages/core-components/src/components/modal/modal.scss b/packages/core-components/src/components/modal/modal.scss index 5ec819fe..8ed71015 100644 --- a/packages/core-components/src/components/modal/modal.scss +++ b/packages/core-components/src/components/modal/modal.scss @@ -53,8 +53,18 @@ align-items: center; margin-bottom: var(--b2b-size-space-75); - b2b-icon { - padding-left: 8px; + &-left { + display: flex; + justify-content: flex-start; + + b2b-headline { + padding-right: 8px; + } + } + + &-right { + display: flex; + justify-content: flex-end; } } diff --git a/packages/core-components/src/components/modal/modal.tsx b/packages/core-components/src/components/modal/modal.tsx index adbb2a26..db753d20 100644 --- a/packages/core-components/src/components/modal/modal.tsx +++ b/packages/core-components/src/components/modal/modal.tsx @@ -161,22 +161,26 @@ export class ModalComponent { [`b2b-modal__dialog--${this.variant}`]: true, }}>
- - {this.heading} - - - +
+ + {this.heading} + + +
+
+ +
diff --git a/packages/core-components/src/html/status.html b/packages/core-components/src/html/status.html index 553c0c5e..8a305d54 100644 --- a/packages/core-components/src/html/status.html +++ b/packages/core-components/src/html/status.html @@ -92,6 +92,7 @@ backdrop-dismiss esc-dismiss="false">
This is a test modal
+ * Mandatory Close