cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK page background color

alina_cucean
Explorer

Hello,

I am following the examples on how to change the background color for a Page.

I have the style in the less file, but it is not working. On the mobile app there is no change.

Page{ background-color: red;}

Am I missing something on these examples on how to use them https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/schemadoc/S... ?

Even more, any style I add for the MDK app I can see it is applied only to the web app and not the mobile app.

Many thanks for your time!

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

There is a typo in that page of the docs. The correct style to use is MDKPage. This is correctly noted in the Styling doc here. Only the background color will have any effect as the controls would be styled individually for colors as needed.

MDKPage {
  background-color: blue;
}

We will update the Unified Styling page to correct the reference.