Skip to content

Dark mode can't be turned off #855

@bernhardh

Description

@bernhardh

Flux version

v1.0.30

Livewire version

v3.5.17

What is the problem?

Since the latest update (v1.0.30), my site is stuck in dark mode, but I don't want this. I am not the only one with this problem, in discord chat, there is at least another user with a similar problem.

I know my browser preferences are set to "dark mode," but my client doesn't like dark mode and only wants the page to use standard styles.

Calling window.Flux.dark = false; is a hotfix, but not a real solution.

Code snippets

I tried setting darkMode: "selector" and darkMode: false`, but nothing worked. The dark class is always being added to the body element.

How do you expect it to work?

I expect, that darkMode: false or darkMode: "selector" is respected.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions