Skip to content

Redraw stylesheet not working when using alternative style sheet #82

@shubjhamb

Description

@shubjhamb

We have a use case where for theme switch we are using alternative stylesheets, so when our app loads first time it is a normal style sheet with rel="stylesheet" and redrawStylesheet function works fine, but when we switch theme then a new stylesheet is appended with rel="alternate stylesheet" and because of this redrawStylesheet never calls again because only onElement('link[rel="stylesheet"]' is being watched. So alternative stylesheet support also needs to be added in library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions