Closed boghyon closed 3 years ago
Hello @boghyon,
Thank you for sharing this finding. I've created an internal incident 2180085202. The status of the issue will be updated here in GitHub.
Best Regards, Boyan
Hello @boghyon,
Thank you for sharing this finding. The issue is now fixed with: 6f6dab2
Best regards, Yana
The commit https://github.com/SAP/openui5/commit/6f6dab2c0df8e0e3ecb543e4d4b2510327e96874 unfortunately has some issues.
It only covers sap.m.Button
explicitly. Future or custom controls, which extend from sap.m.MessagePage
, would have the same issue again if they include an icon somewhere outside of a button.
The hardcoded font-size: 1rem;
may only work for sap_fiori_3
in compact density mode, but not in other settings. Here is the button icon, for example, in sap_belize_plus
cozy mode after the commit:
Each one of the themes applies also color: fade(@sapUiContentNonInteractiveIconColor, <themeDependentValue>)
to the icon. The commit https://github.com/SAP/openui5/commit/6f6dab2c0df8e0e3ecb543e4d4b2510327e96874, however, handles only the size of the button icon ignoring the fade
in each theme.
I proposed a solution in this PR: https://github.com/SAP/openui5/pull/3146.
It leverages the sapMMessagePageIcon
CSS class which is available only to the main icon of the sap.m.MessagePage
:
https://github.com/SAP/openui5/blob/091ecbf11538e311c86b520aaca6827d26c91270/src/sap.m/src/sap/m/MessagePage.js#L321
I think it's a good opportunity to make use of sapMMessagePageIcon
to increase the specificity of the main icon so that the CSS rules do not affect any other icons inside of sap.m.MessagePage
.
Please consider reverting https://github.com/SAP/openui5/commit/6f6dab2c0df8e0e3ecb543e4d4b2510327e96874 and reopening this issue.
Hi,
Based on the comments and on the open PR #3146 I am reopening the issue. It will be processed further with the internal incident 2180085202 and progress will be updated here.
Regards, Alexandar Mitsev
For future readers: the control sap.m.MessagePage
is deprecated since https://github.com/SAP/openui5/commit/eef51496841f732dab5d66e0ffc7e36b3009855e (UI5 1.112). Use sap.m.IllustratedMessage
instead: https://sdk.openui5.org/entity/sap.m.IllustratedMessage
Steps to reproduce the problem:
sap-icon://message-warning
) to one of the buttons.What is the expected result?
The CSS rule for the main icon in the MessagePage is specific to the main icon only and does not affect other icons.
What happens instead?
The icon in e.g. sap.m.Button is affected due to: https://github.com/SAP/openui5/blob/a2e209dc78ea1da73396dc97f52f033d5fc79510/src/sap.m/src/sap/m/themes/base/MessagePage.less#L49-L56