mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 919 forks source link

Refresh: Standardize icon usage #15532

Open stephaniehobson opened 5 days ago

stephaniehobson commented 5 days ago

Different approaches have been taken with the icons for different components and we should standardize. This should mean moving away from changing icon colours in the CSS and towards including SVGs included on the page with the fill or stroke set to match currentColor.

Things to consider:

Goals:

alexgibson commented 4 days ago

Reminder that we have the picture() helper that can serve light/dark mode icon images without the need for inlining and using custom CSS styling.

Avoiding in-line images where possible circumvents CSP issues, and also offers improved caching and lazy loading provided by the browser.