openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.Table: Setting backgroundDesign Has No Effect

Open boghyon opened this issue 8 years ago • 5 comments

URL (minimal example if possible)

https://jsbin.com/fuqohoc/edit?js,output

Steps to reproduce the problem:

  1. Open the above sample page
  2. Select a different background design

What is the expected result?

The table body applies the selected background design. E.g.: When selecting Transparent, the table body is transparent.

What happens instead?

None of the designs actually work. The table body has always the following color ... https://github.com/SAP/openui5/blob/7710bfe07f88a6209ad5fd4962390d87351bc320/src/sap.m/src/sap/m/themes/base/Table.less#L298-L300 ... which is just #fff currently.

Any other information? (attach screenshot if possible)

output jsbin com_fuqohoc

In contrast, setting backgroundDesign in sap.m.List works well.

boghyon avatar Sep 10 '18 13:09 boghyon

Hello @boghyon,

Thank you for sharing this finding. I've created an internal incident 1870414875. The status of the issue will be updated here in GitHub.

Regards, Tereza

terezamch avatar Sep 12 '18 07:09 terezamch

Hi @boghyon, The issue was already addressed internally via another internal incident for which a fix has been provided. Kindly update test your app with the next nightly built.

Thanks and regards, Jay

jaybarbhaiya avatar Sep 21 '18 12:09 jaybarbhaiya

@jaybarbhaiya Thank you for the fix! Just to document for future readers; this was done with https://github.com/SAP/openui5/commit/08e8a20e67995cf0a731d23bfdba34544c43af39.

boghyon avatar Sep 21 '18 16:09 boghyon

@jaybarbhaiya Is the implementation of the background design Translucent intentionally left out? I don't see any difference between Translucent and Solid.

boghyon avatar Sep 24 '18 08:09 boghyon

@boghyon The backgroundDesign is dependent on the theme that is used. In your sample, the sap_belize theme is used where the Solid and Translucent behave in the same way. If you switch the theme to sap_bluecrystal then you can see the difference in Solid and Translucent background as it was supported in the bluecrystal theme.

It is also documented in the API that the backgroundDesign is dependent on the theme that is used in the page.

jaybarbhaiya avatar Sep 24 '18 13:09 jaybarbhaiya