0

I have generated a Jhipster application and installed primeng.

In vendor.scss :

@import 'primeng/resources/themes/nova/theme.css';
@import 'primeng/resources/primeng.min.css';
@import 'primeicons/primeicons.css';

In the component.html :

<button
  pButton
  pRipple
  label="Submit"
  class="p-button-success">
</button>

The button shows like that : enter image description here

In Chrome :
enter image description here
I would expect it would be like that : enter image description here

It's like it is not using primeng styles.
Any idea why?

In angular.json I have:

"styles": ["src/main/webapp/content/scss/vendor.scss", "src/main/webapp/content/scss/global.scss",
              "node_modules/primeng/resources/themes/nova/theme.css",
              "node_modules/primeng/resources/primeng.min.css"
            ],
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.