Skip to content

Extending CSS #163

Closed Answered by FlipWarthog
david-zed asked this question in PrimeFaces
Oct 2, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Try:

body .primary-green-button {

or (note no space between .ui-button and .primary-green-button

body .ui-button.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 with primary-green-button within a ui-button.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@david-zed
Comment options

@david-zed
Comment options

@FlipWarthog
Comment options

Answer selected by david-zed
@david-zed
Comment options

@jepsar
Comment options

jepsar Oct 5, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants