primeng icon indicating copy to clipboard operation
primeng copied to clipboard

18.0.0-beta.3 - base-style is affecting all elements

Open DbkMG opened this issue 2 years ago • 2 comments

Describe the bug

Testing primeng 18.0.0-beta.3 - some of our components are visible broken because the primeng base-style is affecting all html-elements. image is forcing all elements to be box-sizing: border-box

Environment

primeng 18.0.0-beta.3

Reproducer

No response

Angular version

18.2.8

PrimeNG version

18.0.0-beta.3

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

i would expect a scoping via css-class and not defining the box-sizing for all elements

DbkMG avatar Oct 25 '24 10:10 DbkMG

That CSS is a must have, we've also added box-sizing to before and after as well. All CSS libraries like Tailwind and Bootstrap use border-box sizing as well which is suggested. I'd definitely suggest switching your app to border-box otherwise you'll always have issues when trying to import a 3rd party UI widget whether it is PrimeNG or not.

cagataycivici avatar Nov 22 '24 07:11 cagataycivici

Unfortunately, this issue cannot be fixed due to technical limitations. PrimeNg team has decided not to pursue a fix, as addressing it would introduce other complications. Thanks a lot for your understanding!

github-actions[bot] avatar Nov 22 '24 07:11 github-actions[bot]