cancel
Showing results for 
Search instead for 
Did you mean: 

css inconsistent on upload file

0 Kudos

Hi All,

I am using sap.ui.commons.FileUploader to upload file. Unfortunately I cannot use other controls as the UI version is 1.20.9.

I changed the style of browse button of uploader by using the following code and as shown in the attached screenshot.

$('#FILEUPLOADER button').addClass('uploadButton');

where uploadButton class is

.uploadButton.sapUiBtnS.sapUiBtn.sapUiBtnStd {

  background-color: rgb(105, 185, 214)!important;

  border: none;

  color: white;

  font-size: 13px;

  font-family: zetta serif;

}

.uploadButton.sapUiBtnS.sapUiBtn.sapUiBtnStd:hover,.uploadButton.sapUiBtnS.sapUiBtn.sapUiBtnStd.sapUiBtnStdHover

  {

  background-color: #285676!important;

}

On uploading a document the added style gets vanished. I tried different ways. None of them worked.

Is there any powerful way to fix this?

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Sudarshan,

Will this sample help? JS Bin - Collaborative JavaScript Debugging

I used version 1.20.8, since 1.20.9 was not available on cloud: Available SAPUI5 versions on SAP HANA Cloud Platform

Regards,

Sai.

0 Kudos

Thanks for your reply Vellanki.

But, I was having difficulty in using that in my view.js.

saivellanki
Active Contributor
0 Kudos

Sudarshan,

This might help you? Plunker

Regards,

Sai.

0 Kudos

I was using sap_platinum as the data-sap-ui-theme instead of sap_bluecrystal. So the proposed solution didn't work.

But, ya. For sap_bluecrystal this absolutely works fine.

0 Kudos

Hi Vellanki,

Can this problem be solved by keeping data-sap-ui-theme as sap_platinum?

If not, is there any specific reason?

saivellanki
Active Contributor
0 Kudos

Sudarshan,

I don't see any issues with platinum as well? JS Bin - Collaborative JavaScript Debugging

Regards,

Sai.

0 Kudos

Try the same on Plunker. It won't work.

Answers (0)