Skip to Content
0
Jun 12, 2018 at 05:15 AM

How to use the SAP standard CSS classes to change color.

225 Views

Hello Everyone,

SAP doesn't recommend using the custom css as follows:

.myCustomButton1 .sapMBtnInner{ margin-right: 0.125rem; background: lime; } .myCustomButton2 .sapMBtnInner{ margin-right: 0.125rem; background: aqua; } .myCustomButton3 .sapMBtnInner{ margin-right: 0.125rem; background: olive; }

and then using the class for your UI elements.

there is a link below that uses the standard SAP CSS classes however when I try to implement them in my application, they don't work. Can anyone help??

https://help.sap.com/saphelp_uiaddon10/helpdata/en/ea/08f53503da42c19afd342f4b0c9ec7/content.htm?loaded_from_frameset=true

there is also a link for supported CSS classes however it is only for texts. Can anyone tell me how its done for a button?

https://help.sap.com/saphelp_uiaddon10/helpdata/en/91/a4946b0dcf4356aaaedc4e502864f4/frameset.htm

Thanks and Regards

Parnaksh