Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CardElement isn't transparent if color-scheme is set in parent page #878

@Aycarambo

Description

@Aycarambo

At least using google Chrome, iframes are not transparent if they do not contain the same color-scheme tag value as the parent page.

So when implementing a dark theme on a website, it is impossible to style the background-color of the CardElement to match the user's current theme.

Potential solution : add a new optionnal object key to the CardElement({}) constructor for passing in the value of the color-scheme tag.

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