Comments (2)
Hi wombling,
CustomListItem accepts any control, At List inside List case, inner ListItem has more specific css rule than active background and this cause the issue. But we cannot write a theme that works for every control. You can also add a Shell as a CustomListItem then what should be the bg color? Actually from the control(List) we cannot know background handling is desired behavior for CustomListItems. So you should write your own custom css for this situation.
See: http://jsbin.com/qufuhati/1/
Best regards,
Cahit
from openui5.
Thanks Cahit.
the custom CSS is a good solution. For others encountering the same issue in the future it might be worth the documentation around the CustomListItem being enhanced to point this out?
It is a shame that this can not be handled in the the standard, but I understand there must be some point where the line is drawn, indeed catering for a Shell would be quite ridiculous.
However this does leave me in an awkward position in that the UI5 controls that I'm using are being themed by multiple customers through the HANA Cloud Portal, and as such they can all change the background colours to be different. whilst my custom CSS would stay the same. :(
I can work around this by building a simple control that displays an array of texts, so all is not lost :) , and in the mean time the CSS you provided is helpful for a sticking plaster solution.
Thanks for your help.
Chris
PS clicking on my picture in GitHub does give details of who I am, whilst it is quite regular that I'm referred to as "wombling" it's also nice to be called Chris :)
from openui5.
Related Issues (20)
- UploadSet on Surface Tablet not same behaviour as on iPad HOT 1
- [sap.m.upload.UploadSet] sap.m.IllustratedMessage does not bind i18n text, and illustrationType requires special prefix HOT 4
- sap.ui.unified.Calendar - ui issue when selecting date from next month, old date remains outlined HOT 1
- there is no “Standard” text in the built-in sap.ui.comp.smartvariants.SmartVariantManagementUi2 in the FilterBar. HOT 2
- sap.m.StandardListItem: Icon not correctly aligned vertically HOT 1
- Request: method to get hex code of an sap.ui.core.IndicationColor HOT 1
- CSRF token cannot be resolved - Integration card HOT 2
- sap.m.Table: Ability to export to a spreadsheet (Excel, CSV, ...) HOT 3
- sap.m.Table ListMode Delete for table cannot be used in drag and drop because selection of a row is not permitted HOT 2
- JS Doc for calculateStartDate in SinglePlanningCalendarView HOT 3
- Dialog Cancel Buttons have Border around them in 1.119 and 1.120 HOT 1
- FeedInput is using deprecated type definition HOT 2
- Fiori Elements routing as nested component - not tracking history correctly HOT 2
- Advise needed: Firefox does not send xhr because of syncXHRFix.js and XHRInterceptor.js HOT 8
- ViewSettingsDialog _globalReset HOT 1
- sap.m.Input suggestionItems not shown as soon as they are added HOT 1
- sap.ui.unified.CalendarDateInterval Doesn't show calendar weeks version 1.120.0 HOT 2
- Personalization for responsive table not working on UI5 Demo HOT 1
- sap.suite.ui.commons.MicroProcessFlow Micro Progress Item is not shown fully when focused HOT 1
- Can't write CustomData to DOM for CalendarAppointment correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openui5.