Studio - Icon Field
Add a field which primarily allows the user to select an icon from a list of named icons.
On the Liquid side, this will insert the needed HTML inside the section, plus add the icon name to a manifest. Using tree-shaking, only the icons on the manifest will be imported into the page in the browser, for best-practice performance.
We should allow an option within the icon field’s settings to specify an icon library, but we’ll start by only supporting Google material icons which are loaded through a font: https://developers.google.com/fonts/docs/material_symbols#optimize_the_icon_font
Log in to comment and vote
Comments1
Matt Jones
Nov 18
Because we delayed on this, we ended up just including all icons in all pages, which was never the intention. We always chose this library with a view to be able to specify the icons we wanted on demand.
Time to revisit soon I think.
@Luke Wakefield Relevant to the Ella Lane yoga performance scores.