Skip to content

Dark mode is not working for components using portals #1608

@glenngijsberts

Description

@glenngijsberts

Improvement description

Components, such as Toasts and Dialogs, are not working in dark mode. This has to do with the portals that are being used, that are rendering the components outside of the root of the playground and so they don't have a parent with the data-theme="dark" property.

Expected behaviour

Portals should be either rendered inside the root, or we should find another way to make those components work in dark mode.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions