cancel
Showing results for 
Search instead for 
Did you mean: 

LESS file entries isnt reflecting on UI5 control in widget.

Former Member
0 Kudos

Hi ,

I have created a widget out of a SAP UI5 application. Basically its calling a label with a text.

I have updated the LESS file with the updated parameter values as:

@SiteFontColor: #FF0000;

@SiteFontFamily: Comic Sans MS, cursive, sans-serif;

1)The Font Color does nt seem to get reflected at the site level but it does at the widget level.

2) The font family does seem to get reflected at the site level but not at the widget level.

How can I change the font family for the SAPUI5 widget in HCP

Kindly advise.

Accepted Solutions (0)

Answers (1)

Answers (1)

eliel_schurman
Participant
0 Kudos

Hi,

Did you use sap-theme feature in the spec.xml file?

<Require feature="sap-theme">

  <Param name="include-ui5">true</Param>

</Require>

SAP HANA Cloud Portal Documentation

Regards,

Eliel.

Former Member
0 Kudos

yes Eliel,

As I said, the font color change does get reflected on the widget. The font style changes are not. and also the font size are not. Any lead?

Former Member
0 Kudos

I have created a widget out of a SAPUI5 application.

I have to change font style,font size and the font color of the controls in this widget.

I have made the given changes in the LESS file:

@WidgetFontFamily: Comic Sans MS;
@WidgetFontSize: 20px;
@WidgetFontColor: #FFFF00;

.

I have updated the spec file with

<Require feature="sap-theme">
      <Param name="include-ui5">true</Param>
     </Require>

The changes isnt getting reflectd.

former_member182739
Active Participant
0 Kudos

Please try to drag again thw widget to the page and check this after you publish your site.

If this is still not working, then it looks like a bug. Please raise a customer ticket.

I will ask someone from the developement teams to check this issue.

Please send me your code and Less file.

Inbal.sabag@sap.com

Inbal

Former Member
0 Kudos

Hi Inbal,

Thanks for your response. After I dragged the widget, I could see the Font color change getting reflected The font family and the font size changes are not getting reflected.

Meanwhile I will send the code and less file on your mail id to have a look.