Skip to content

Radix themes overrides custom theme var for Portaled Elements(dialog, popover.content, etc) #708

@eliav-cortanix

Description

@eliav-cortanix

as the docs state, radix themes provide their own Theme context provider so portaled elements would get the DEFUALT radix CSS styles and vars. The issue is what if we provide our own theme provider styles and CSS vars override? the inner Theme radix themes provide would override our styles.

why not try to useContext of the nearby Theme, and provide a ref to this dom element as the container? or alternatively, provide a mechanism that respect a inner custom ThemeProvider for portaled element?

Image

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