In my Angular 13 project, I am utilizing Bootstrap version 5.2.1. While most components are working as expected, the alert component seems to be missing some styling elements. Specifically, I have noticed that alerts with the classes alert-success and alert-danger do not have a background color applied, unlike the alert-primary which has a green background:
<div class="alert alert-primary" role="alert">
A simple primary alert—check it out!
</div>
Upon inspecting the styles in the browser's developer tools, it appears that only alert-primary is receiving the necessary background color while the other classes are missing those styles. Could this be a common issue experienced by others using Bootstrap 5?
It's worth noting that I am importing the "~bootstrap/scss/bootstrap.scss" style in my styles.scss file and not using a CSS file or CDN link. Is there a potential problem with the Bootstrap 5 SCSS files causing this inconsistency in styling?