on 09-29-2016 12:25 AM
I want two buttons to have different colours. I’d appreciate assistance.
I’m successfully changing the colour of both buttons to be the same with the following CSS in the Custom CSS file:
.sapMBtnInner {
background: brown !important;
color: white !important;
}
To enable the two buttons to have different colours, I thought the solution would be to create the following two classes (one for each colour ) in the Custom CSS file and refer to the relevant class in the button’s CSS Class.
.MyButtonSelected.sapMBtnInner {
background: brown !important;
color: white !important;
}
.MyButtonUnSelected.sapMBtnInner {
background: white !important;
color: black !important;
}
But neither the MyButtonSelected nor MyButtonUnSelected is being recognised. Any suggestions as to what I need to do?
Thanks in advance.
Greg
Hi Greg,
keep space between both classes, try below:
use
.MyButtonSelected .sapMBtnInner{
not
.MyButtonSelected.sapMBtnInner {
-Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Greg,
Below is the code similar to your code and things work.
.mybutton {
background: brown !important;
color: black !important;
}
.mybutton2 {
background: white !important;
color: black !important;
}
Configure mybutton as cssclass to button 1 and mybutton2 tas cssclass o button2.
Is this what you are trying to achieve or something different?
Regards
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.