Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Modify background of a button onclick event

hi everybody,

I have a problem with the theme blue crystal and the element button.

When i press the button it change the background of the button to blue, only when do the action, after y have a button.setclass("x") so it just mudify the colour when do the action.

anyone knows how hide this effect? i try with that

#button:active {

    vertical-align: top;

    padding: 8px 13px 6px;

    background-color:black !important;

}

thanks

Former Member
Former Member replied

Hi Gallego,

Use the below code in the css file of your application:

.btn.sapUiBtnAct.sapUiBtnS:hover

{background-color: #f0f0f0;}

Map the CSS class to btn in properties panel of the element button as below:

On doing the above steps the background changes from blue to default color.

Thanks,

Kavya

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question