FirefoxUX / photon-components-web

INACTIVE - http://mzl.la/ghe-archive - Photon versions of the some common WebComponents
https://FirefoxUX.github.io/photon-components-web/
Mozilla Public License 2.0
29 stars 11 forks source link

Implement Webpack .svg loader to replace fill color #77

Closed lmorchard closed 5 years ago

lmorchard commented 5 years ago

Adds a custom Webpack loader that replaces fill="context-fill" with a custom fill color when a ?fill query parameter is specified in an .svg URL in CSS.

background-image: url(~photon-icons/icons/desktop/check-16.svg?fill=grey-10-a70);

Issue #67

lmorchard commented 5 years ago

GitHub Pages Deployment

Storybook: https://FirefoxUX.github.io/photon-components-web/commits/a59570a02071a44f0806a1cd6877d43d0a2a3bc5/ Build: https://FirefoxUX.github.io/photon-components-web/commits/a59570a02071a44f0806a1cd6877d43d0a2a3bc5/dist.zip

meandavejustice commented 5 years ago

Thank you!!