[wp-meta] [Making WordPress.org] #4949: Add further Examples on Dashicons Page
Making WordPress.org
noreply at wordpress.org
Mon Jul 13 18:36:17 UTC 2020
#4949: Add further Examples on Dashicons Page
---------------------------+---------------------
Reporter: derweili | Owner: (none)
Type: defect | Status: new
Priority: low | Milestone:
Component: Developer Hub | Resolution:
Keywords: |
---------------------------+---------------------
Comment (by Joen):
Thanks for the ticket! Dashicons are not as widely used in the block
editor any more, and the preferred syntax for block icons leverages the
new icon syntax. This syntax:
{{{
icon={help}
}}}
This leverages the actual markup served in that constant, rather than
being the name of an icon in a sprite. That also enables custom SVGs in an
easier way.
I don't think the Dashicons component bundled with the block editor is
deprecated, or will be any time soon. But it's a little bit a legacy way
of doing it.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4949#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list