Adding bootstrap css causes gridlines on p-table to disappear #178
-
I asked another question related to this issue and was answered here: https://github.com/orgs/primefaces/discussions/153 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Bootstrap and primeflex classes are different. They may sometimes collide and one of them overrides, because of that you can find mismatch in styles of both libraries. Your example works with bootstrap after a refactor, all you need to do is refactor your css imports please see the example https://stackblitz.com/edit/stackblitz-starters-sq8d71?file=src%2Fglobal_styles.css,src%2Fapp.component.html For the table styling with bootstrap, I suggest you to use tableStyleClass property of the table. You can either import library styles to your main css file or styles array in angular.json file. |
Beta Was this translation helpful? Give feedback.
Hi,
Bootstrap and primeflex classes are different. They may sometimes collide and one of them overrides, because of that you can find mismatch in styles of both libraries.
Your example works with bootstrap after a refactor, all you need to do is refactor your css imports please see the example https://stackblitz.com/edit/stackblitz-starters-sq8d71?file=src%2Fglobal_styles.css,src%2Fapp.component.html
For the table styling with bootstrap, I suggest you to use tableStyleClass property of the table.
You can either import library styles to your main css file or styles array in angular.json file.