I'm facing an issue where Bootstrap is overriding my PrimeNG styles, particularly with its _reboot.scss file. I have included the relevant parts where I referenced it in both my styles.scss and angular.json files. Interestingly, I noticed that this issue was resolved in a vanilla setup using just HTML, but not in an Angular environment.
Here's what I have at the top of my styles.scss:
@import 'modern-normalize/modern-normalize.css';
@import "bootstrap/dist/css/bootstrap.css";
@import 'bootstrap-icons/font/bootstrap-icons';
@import "primeicons/primeicons.css";
@import "primeflex/primeflex.css";
@import "primeng/resources/primeng.min.css";
And in my angular.json file, I have the following configuration for styles:
"styles": [
"modern-normalize/modern-normalize.css",
"bootstrap-icons/font/bootstrap-icons.css",
"bootstrap/dist/css/bootstrap.css",
"primeicons/primeicons.css",
"primeflex/primeflex.css",
"primeng/resources/primeng.min.css",
"src/styles.scss",
{
"input": "src/theme-light.scss",
"bundleName": "light",
"inject": false
},
{
"input": "src/theme-dark.scss",
"bundleName": "dark",
"inject": false
}
],