Problem/Motivation

darkmode bug

On dark mode on this page, the side navigation inherits the wrong styles.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3609023

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bernardm28 created an issue. See original summary.

hinal05’s picture

Assigned: Unassigned » hinal05

I reproduced this on Drupal 'main' using the 'default_admin' theme. Dark mode works fine, but the Layout Builder canvas turns white after clicking Enable Edit mode.

I’m working on a fix.

hinal05’s picture

Assigned: hinal05 » Unassigned
Status: Active » Needs review
StatusFileSize
new177.78 KB
new176.58 KB

I updated the background colors in 'layout-builder.pcss.css' for dark mode using the 'default_admin' color variables. The light mode is unchanged. I tested it locally, and the canvas, blocks, and drop zones now look correct in dark mode after clicking Enable edit mode.

I’ve attached the working screenshot here.

smustgrave’s picture

Status: Needs review » Needs work

dark-mode doesn't appear to be a class for layout builder so don't think we should put theme specific css there.