Is there a standard, framework supported way to add a new Icon to a Magento 2 top level Menu item?
When you add a new top level Menu Item to Magento 2's backend, you end up with a generic hexagon as the icon.
Is there an officially supported way to add a custom icon here? The
<li/> tag has an
id element, so I can think of an infinite number of ways to jam an icon in there via CSS. What I'm interested in here is how core Magento modules do it -- i.e., what's The Right and True Way™ to add an icon.
Update: Re: Duplicates -- I'm trying to avoid a solution like the one outlined here. i.e. all that does is jam some additional, unstructured CSS rules into a module in order to add an image. At minimum, Magento's own rules (seem to?) use a structured
_menu.css file to style those icons. I'm operating from the point of view that there's a structured way to do this, and what I'm looking for is that structure, not another "this happens to work now but might break in the future because it doesn't follow the implicit design of the core system".