Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fractaledmind opened this issue Nov 12, 2020 · 1 comment

Comments

@fractaledmind
Copy link

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);
}
@adamwathan
Copy link
Member

Thanks, should be fixed in v0.1.4 which is out now 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants