-2

I use a modal Dialog and I want to modify the appearance (color and opacity). Which skinning to use? Thanks for your help.

<p:dialog id="idDial" widgetVar="wvDial" modal="true" ... />
Kukeltje
  • 12,085
  • 4
  • 21
  • 46

1 Answers1

3

Based on user guide from PrimeFaces documentation you can redefine following style classes:

.ui-dialog Container element of dialog

.ui-dialog-titlebar Title bar

.ui-dialog-title-dialog Header text

.ui-dialog-titlebar-close Close icon

.ui-dialog-content Dialog body

Jasper de Vries
  • 16,868
  • 6
  • 60
  • 93
Vasil Lukach
  • 3,541
  • 3
  • 29
  • 39
  • I have searched for a long time on websites and stackoverflow but I cannot find the appropriate css skin. Should I use a solution with jquery or javascript? – Denis Duval Mar 29 '20 at 14:03
  • 1
    @DenisDuval: There is no such thing as a 'css skin' it just does not exist. Not in PrimeFaces, JSF, HTML, CSS... There can be a skin composed of css and javascript. But still then the CSS is all plain CSS selectors tweak those.. . – Kukeltje Mar 30 '20 at 10:56