Giter Site home page Giter Site logo

Comments (2)

aborjinik avatar aborjinik commented on May 29, 2024

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.

wombling avatar wombling commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.