I have developed an application that consists of 4 components within it:
<div [@routerTransition] class="position-relative overflow-hidden pt-3 m-md-3">
<div class="mx-auto mb-5 pb-1 container">
<app-set-vehicle-details id="step1" (step1Finished)="enableStep2($event)" (busy)="setBusy($event)"></app-set-vehicle-details>
<app-product-selection id="step2" *ngIf="step2Enabled"></app-product-selection>
<app-product-details id="step3" *ngIf="step3Enabled"></app-product-details>
<app-customer-details id="step4" *ngIf="step4Enabled"></app-customer-details>
</div>
</div>
Initially, the view is intended to appear like this:
https://i.sstatic.net/uuwOo.png
However, when the second component is introduced, the background color changes to white:
https://i.sstatic.net/8rogG.png
This sudden change in background color is perplexing. Here is a snippet of the CSS related to it:
.theme-main [_nghost-etm-c5] {
background-color: #F0F0F7 !important;
color: #4D4F5C !important;
}
https://i.sstatic.net/VLvKF.png
A screenshot showcasing the main container can be seen here:
https://i.sstatic.net/xKV9a.png
The appearance of the white space remains unexplained. The only notable event is the dynamic addition of the second component after an action is triggered. Could this cause the height discrepancy?
Your insights and assistance are greatly appreciated!
To provide further clarity:
Styling details are fetched from a custom library referenced as
styles.scss
Here's the style associated with the body:
Applying Bootstrap's h-100
should ideally result in:
https://i.sstatic.net/UfsuN.png
Despite these efforts, the issue persists. Any suggestions on how to address this? Thank you for your help!