Skip to content

Modal CSS pollutes global scope on any page where it's loaded #28

@mgerring

Description

@mgerring

Expected behavior: Modal loads and leaves existing page CSS unchanged

What happens: The modal loads some reset CSS that applies globally, affecting other elements on the page. The CSS also isn't removed when using history.pushState from react router -- clearing the injected CSS requires a full page refresh

To reproduce: Include the modal on any page with other styled elements

To fix this, the modal and its overlay probably needs to have exclusively inline CSS, or else load itself via an iframe.

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