Base solution for your next web application
Open Closed

PrimeNG #11819


User avatar
0
gerryp created

My questions are regarding PrimeNG integration with ASP.NET Zero:

First, why are we on such an old version of PrimeNG? We are currently on 13.x, but the latest version is 17.x.

Second, does anybody else have issues with how PrimeNG controls look? It's like the other styles from metronic and elsewhere are interfering with their appearance.

Thanks.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Latest version of AspNet Zero uses version 16.4.2 of PrimeNG. You can upgrade it on your solution and request help if you face any issues. We will upgrade to 17.x with the next release.

    Could you share the problematic look of a sample control ? Metronic itself doesn't have any style for PrimeNG.

  • User Avatar
    0
    [email protected] created

    Really surprised nobody else has noticed this issue. But PrimeNG themes introduced @layers with version 16.4. The problem is Metronic and everything else does not use layers. So, what ends up happening is that PrimeNG styles don't get top priority anymore, so you get weird behavior.

    Here is a link to the issue.

    https://github.com/primefaces/primeng/issues/13757

    The fix I have found is to copy the PrimeNG theme css files you need into your assets folder and edit them to remove the @layers lines. Then change angular.json to use those files instead of the ones from node_modules.