Change commandButton color?

0

I would like to change the color of a commandButton, actually several, I wanted to leave set "edit", "delete" ... etc

My code looks like this.

<p:commandButton icon="ui-icon-trash" actionListener="#{MBFabricante.prepararExcluir}"
    oncomplete="PF('dlgFabExcluir').show();"
    update=":frmFabExcluir:pnlFabExcluir" />

I wanted to change the color of the icon

    
asked by anonymous 08.06.2017 / 03:14

1 answer

2

Use class .ui-button of primefaces , see example:

.ui-button{
    background: red !important;
}

The result:

InthisexampleIuseanexternal.cssfile.Youcancheckoutthisclassin Documentation of Primefaces.

    
09.06.2017 / 16:37