Hello,
I have implemented the functionality of setting the background color for the sap.m.button on button click event by adding the style class to the button.
Recently we have upgraded the HANA to SP08 latest revision. After that I noticed that SAP UI5 library is in 1.22.9 version. The background color for the button is not set properly now. It is partially visible only on the top and bottom of the button.
I inspected the button element and found that one another inner div element is added to the button.
The code in the button element of the older version as follows
<button type="button" id="B1SB" data-sap-ui="B1SB" tabindex="0" class="sapMBtn sapMBtnDefault sapMBtnDesktop sapMBtnPaddingLeft sapMBtnPaddingRight sapMFocusable" >
<span class="sapMBtnContent">Hello</span>
</button>
The code in the button element of the newer version as follows
<button type="button" id="B1SB" data-sap-ui="B1SB" class="deselected sapMBtn">
<div id="B1SB-inner" class="sapMBtnDefault sapMBtnHoverable sapMBtnInner sapMBtnPaddingLeft sapMBtnPaddingRight sapMFocusable">
<span class="sapMBtnContent" id="B1SB-content">Hello</span>
</div>
</button>
I am not sure whether this has some relation to the improper rendering.
Kindly help me out to resolve this issue.
Thanks & Regards,
Monissha