Extending CSS #163
-
Hi, I am using JSF2.2 and Primfaces 13, in my xhtml file I have
and in my css I have
however when i run this the css is ignored and i just get the primefaces default. I am looking to extend the default rather than override it |
Beta Was this translation helpful? Give feedback.
Answered by
FlipWarthog
Oct 2, 2023
Replies: 1 comment 5 replies
-
I have tried updating the css to
but this then overrides all p:commandButton |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try:
or (note no space between
.ui-button
and.primary-green-button
The issue with your first attempt was CSS specificity -- the prime style was more specific than yours -- and
body .ui-button .primary-green-button
is not selecting the right element since it's looking for anything withprimary-green-button
within aui-button
.