Environment
This case has been tested in the following environment- JDeveloper 11.1.1.6
UseCase
After testing some time and getting very frustrated I finally found out how to skin the font of the ADF commandButtonSolution
This is what my skinning did look like at firstaf|commandButton {
color: #000000;
font: 12px bold Arial,Helvetica,Geneva,sans-serif;
}
The problem was, that when I did hover or click the button the font always changed to
10pt Arial normal
So I did change my code to this
af|commandButton,This also didn't work. I was trying and testing many different things and was looking in Firebug and just couldn't understand why it didn't take my definition.
af|commandButton:hover,
af|commandButton:active,
af|commandButton:focus:hover {
color: #000000;
font: 12px bold Arial,Helvetica,Geneva,sans-serif;
}
What I had to do was adding text-only at the end of each class and it was working like a charme. So here is the code I used to adjust the font of my commandButton.
af|commandButton:text-only,Contact me if you still have problems with this
af|commandButton:hover:text-only,
af|commandButton:active:text-only,
af|commandButton:focus:hover::text-only {
color: #000000;
font: 12px bold Arial,Helvetica,Geneva,sans-serif;
}
very useful, thank you :-)
AntwortenLöschenAwesome stuff, helped me out a lot. Are you experienced with ADF styling? I'm just a starter in a company where nobody actually knows this and I am kinda discovering it on my own. It would be great if I could ask you some questions every now and then, I really have no support out here and besides the Oracle documentation there isn't a lot of information on forums.
AntwortenLöschenWould really appreciate it.
Tom
Hi Tom,
Löschenthere is a very good forum.
https://forums.oracle.com/community/developer/english/development_tools/application_development_in_java/jdeveloper_and_adf
You can ask all kind of questions. They get answered very fast.
Also interesting
ADF Blog Collection - https://pinboard.in/u:OracleADF/public/
ADF Code Corner - http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
Greetings
Tobi