I am using custom css for adding an error icon with tooltip on it as below.
I am not able to get the result what I used to get after updating bootstrap to bootstrap 5.
Expected:
.icon {
position: absolute;
bottom: 6px;
right: 10.5px;
color: rgba(220, 53, 69, .8);
}
<!-- Bootstrap-5 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- Body -->
<div class="mb-3 col-lg-4">
<label class="col-form-label">Test</label>
<input type="text" class="form-control form-control-sm" formControlName="test" />
<span class="icon" [hidden]="condition" [ngbTooltip]="condition1 ? 'Invalid.' :'test Year is required.'" tooltipClass="tooltip-error">
<em class="fas fa-exclamation-circle"></em>
</span>
</div>
