on 11-23-2017 10:43 AM
I am using below script to apply css to dropdown box in my application. I have deleted default css file and uploaded my local custom css file & assigned it to my application. but it is not working. there are only 3 statements in my css file. Plz help.
Scipt :
.DD_CSS.sapUiTfStd{background-color: blue; color: red;}
.DD_CSS.sapUiTfCombo,.sapUiTfBack.sapUiTfStd { padding:012px00; height:35px; margin-top:1px; border: solid1px#899197; border-radius:3px; }
.DD_CSS.sapUiTfBrd.sapUiTfFoc,.sapUiTfCombo:hover { padding:026px00; height:35px; margin-top:1px; border: solid1px#2cc588; }
You should try adding the !important declaration after each line.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you assign these class name to your dropdown component?
Please share dropdown screen shots.
Regards,
Vidhya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CSS you provided will work for the applications with SAPUI5 template. But if you have used SAPUI5 m template, the class names will be different.
If you are using Lumira 2.0 Designer, it always uses SAPUI5 m template. Hence the class names to be changed accordingly.
For example,
.DD_CSS{background-color: blue;}
.DD_CSS.sapMSlt > .sapMSltLabel{color: red;}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.