feathericons / feathericons/feather

Feather Sprite and CSS background-image

Open
#765 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
26k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Does anybody know of a way you can use the feather sprite with a css background image? I would have thought the below would have worked but it doesn't.

`.list-checkbox {
list-style: none;

li:before {
content: "";
display: inline-block;
width: 1rem;
height: 1rem;
background-image: url('data:image/svg+xml;utf8,');
stroke: currentColor;
stroke-width: 1;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}
}`

Any help appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.