getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

[nextgen-editor] Setting color:white makes child divs unreadable #215

Closed angusmcb closed 2 years ago

angusmcb commented 2 years ago

Setting 'color' css property of a div to white makes all future text in child divs unreadable, including the heading information.

I think this is best explained with an image:

Screenshot 2022-02-18 at 11-40-21 Market Based Programming for WASH ( en running-programmes market-based-programming ) Oxfa

w00fz commented 2 years ago

Unfortunately this is not something that I can fix. The CSS gets inherently applied because of its cascading nature. You have a DIV within a DIV and if you parent DIV has text white, anything within it will have text white.

I would strongly suggest you try and use classes instead of hardcoding inline styling. Inline styling is never a good idea, and makes for maintainability a nightmare.