STYILING THE DROPDOWN VALUES IN PEOPLESOFT CLASSIC
Classic Drop-Down List Styling
STEP:1
To overriding delivered CSS is to identify the style class(es) to target. We can do this using the browser's developer tools.
we can see thet it is targeting the below css
.pt_classic_plus select.PSDROPDOWNLIST
.pt_classic_plus select.PSDISABLED
.pt_classic_plus select.PSDROPDOWNLIST_DISABLED
.pt_classic_plus select.PSDROPDOWNLISTDISABLED
.pt_classic_plus select.PSERROR { }
STEP: 2
we can create a custom css for these calss Eg: i am goind to show evenrows in green and oddrows in red for all drop downs in one component
open the App designer create new style sheet object as and put the custom css like below
.pt_classic_plus select.PSDROPDOWNLIST :nth-child(even),
.pt_classic_plus select.PSDISABLED :nth-child(even),
.pt_classic_plus select.PSDROPDOWNLIST_DISABLED :nth-child(even),
.pt_classic_plus select.PSDROPDOWNLISTDISABLED :nth-child(even),
.pt_classic_plus select.PSERROR :nth-child(even) {
background-color: green;
}
.pt_classic_plus select.PSDROPDOWNLIST :nth-child(odd),
.pt_classic_plus select.PSDISABLED :nth-child(odd),
.pt_classic_plus select.PSDROPDOWNLIST_DISABLED :nth-child(odd),
.pt_classic_plus select.PSDROPDOWNLISTDISABLED :nth-child(odd),
.pt_classic_plus select.PSERROR :nth-child(odd) {
background-color: red;
}
STEP:3
we can appaly for this to custom component Eg:(XX_BOOKING_CMP)
Navigation: PeopleTools > Portal > Branding > Component Branding
and give ths css which you create as shown in below and click save
Results
now we can check the dropdowns in component
For Specific rows instead of (#PSBRSYSTOPT_WRK_PTBRANDTHEME) theis replace with your name for you CSS Selector
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDROPDOWNLIST :nth-child(8), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDISABLED :nth-child(8), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDROPDOWNLIST_DISABLED :nth-child(8), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDROPDOWNLISTDISABLED :nth-child(8), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSERROR :nth-child(8) { | |||||||
| background-color: #cdcfd1; | |||||||
| } | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDROPDOWNLIST :nth-child(9), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDISABLED :nth-child(9), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDROPDOWNLIST_DISABLED :nth-child(9), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSDROPDOWNLISTDISABLED :nth-child(9), | |||||||
| .pt_classic_plus select#PSBRSYSTOPT_WRK_PTBRANDTHEME.PSERROR :nth-child(9) { | |||||||
| background-color: #cdcfd1; | |||||||
}
For specific values
|
Comments
Post a Comment