Skip to content

Commit

Permalink
fix(toast): vertically center toast content
Browse files Browse the repository at this point in the history
make sure content is centered, even if a header is not provided

fix HealthCatalyst#2324
  • Loading branch information
corykon committed Jun 21, 2024
1 parent f928297 commit 636f191
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/cashmere/src/lib/toaster/hc-toast.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<div *ngIf="!_customImage" class="hc-toast-icon"></div>
</div>
<div>
<div class="hc-toast-content-container">
<div class="hc-toast-header">{{_headerText}}</div>
<div class="hc-toast-body">{{_bodyText}}</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions projects/cashmere/src/lib/toaster/hc-toast.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ $hc-header-font-size: 18px !default;
align-items: center;
}

.hc-toast-content-container {
display: flex;
align-items: start;
flex-direction: column;
justify-content: center;
}

.hc-toast-close {
padding-left: 20px;
padding-right: 3px;
Expand Down

0 comments on commit 636f191

Please sign in to comment.