styleClass property ignored in f:facet footer of p:dialog

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

13 Jun 2017, 11:03

Into a p:dialog, when a commandbutton is included in <f:facet name="footer"> it ignores the "styleClass property". In my case I put styleClass="green-btn" and it does not paint the indicated color button. However, if I put the button outside the facet it paint well.
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

13 Jun 2017, 13:16

Please try;

Code: Select all

<style type="text/css">
    body .ui-dialog .ui-dialog-buttonpane .ui-button.green-btn,
    body .ui-dialog .ui-dialog-footer .ui-button.green-btn {
        background-color: #4CAF50;
        color: #FFFFFF;
    }
    
    body .ui-dialog .ui-dialog-buttonpane .ui-button.green-btn.ui-state-hover,
    body .ui-dialog .ui-dialog-footer .ui-button.green-btn.ui-state-hover {
        background-color: #2E7D32;
    }
</style>
Fixed for next version; https://github.com/primefaces/barcelona/issues/11

dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

14 Jun 2017, 19:05

It works.

Thanks a lot!
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

15 Jun 2017, 07:11

Glad to hear, thanks for the update!

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests