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.
Please note that response time for technical support is within 3-5 business days.
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
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Please try;
Fixed for next version; https://github.com/primefaces/barcelona/issues/11
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>
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks for the update!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests