Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A white background is added to all the DIV elements once you click 'quick edit', i suppose through JS.
This doesn´t work for white texts over dark backgrounds, as you can´t read them.
You can´t override it as it´s added to each element, unless you use javascript, but I suppose it isn´t really necessary, as it is 'true' wysiwyg.
Comments
Comment #1
nod_Good to know, will look at it next week.
Comment #2
Wim LeersRelevant code:
css/edit.css
,#edit_overlay
selector.Comment #3
nod_JS is not setting the background directly anymore. It gets wierd for dark backgrounds, it should be readable at least.
There are no visual changes for white ones.
http://drupalcode.org/project/edit.git/commitdiff/1b5b76c693278e972b9dc3...
Comment #4
webchickComment #6
Wim LeersThis commit modified the wrong piece of CSS. Furthermore, if the background color handling is disabled, then
Drupal.edit.views.PropertyEditorDecorationView._getBgColor()
can indeed be removed.The changes to make here clashed with f51d1ed9ea619245ece4527ac63c982656906eef, which doesn't work at all, so I'm reverting that at the same time.
See http://drupalcode.org/project/edit.git/commit/1251ab6.
Comment #7
Wim Leers.
Comment #9
nuezThis issue has reappeared
Comment #10
Wim Leers#9: version?
Comment #11
dmsmidtI can't reproduce this on the latest version. Background doesn't become white on dark themes.
Comment #12
webchickHm. Tentatively moving back to fixed. Nuez, if you can still reproduce this on the latest version, can you post back with more details (browser, making doubly sure all browser caches are cleared, etc.)?
Comment #13
nuezConfirmed, it works as expected. Thanks
As I understand it, Edit takes the background color of the parent element, and adds it as inline color to contrast against the overlay.
My problem was that I had a dark background image, not a background color. You need to add a dark background color as well to the CSS to make it work.
Thanks again,