Skip to Content
0
Jul 27, 2016 at 07:02 AM

css inconsistent on upload file

16 Views

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?

Attachments

initial screen.png (117.7 kB)