Skip to content

Checkbox and Radio misformat background-image when used via NPM package #4

@fractaledmind

Description

@fractaledmind

When I use the package in a project, the background-image of checkboxes and radios doesn't put the content of the url() in quotes, thus leading to Safari stating that this is an "Unsupported property value".

[type="checkbox"]:checked {
    background-image: url(data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e);
}

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