Skip to Content
author's profile photo Former Member
Former Member

Adding custom css files

Hi All,

I want to add my own css files to my ui5 app.

I tried some ways,but by using that my css properties are overriden by sap ui5 standard themes.

Can anyone suggest me some proper way to add custom css files...

Thanks,

Gopi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 24, 2014 at 05:48 PM

    Hi Gopi,

    Your css files are loaded before ui5 theme css files. That is why they are overriding your css code.

    I didn't get how exactly you are using css files in your code. Try loading your css files by following line..

    jQuery.sap.includeStyleSheet(css file url,id);


    Use the above one for every css file.


    Regards,

    Surendra.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2014 at 05:37 PM


    Are you able to provide an example of your code? You should only need to make sure that the style tag is after the ui5 script tags.

    https://sapui5.hana.ondemand.com/sdk/#docs/guide/ThemingFAQ.html

    Regards,

    Jason

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.