Skip to content

[BUG] - "--color" variables used inside shadow-dom - do not change at run-time. #6530

Description

@danielyogel

HeroUI Version

3.0.4

Describe the bug

Hero-UI works mostly good inside a chrome-extension's ShadowDOM, had to fix simple issues regarding Document element.

Last thing which is not perfect:

While classes like "bg-background" change in runtime when toggleing "dark mode" (this classes use "--background" style variables), internal Hero BEM classes use the "--color-background" style colors which stay static when toggeling dark mode inside shadow-dom.

This breaks HeroUI's components that use "--color-default" variables (and not "--default")

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Try to implement a dark-light mode inside a ShadowDOM with HeroUI.

Expected behavior

--background AND --color-background variables should change in runtime inside ShadowDOM.

Screenshots or Videos

No response

Operating System Version

MacOC

Browser

Chrome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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