[wp-trac] [WordPress Trac] #50249: color-picker dashicon not showing
WordPress Trac
noreply at wordpress.org
Tue May 26 16:43:46 UTC 2020
#50249: color-picker dashicon not showing
-------------------------------+------------------------------
Reporter: Lwangaman | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.4.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: ui
-------------------------------+------------------------------
Comment (by Lwangaman):
Using the 'color-picker' icon in an html element using css classes works
fine:
{{{
<h2 class="dashicons-before dashicons-color-picker">A Colorful
Headline</h2>
<h2><span class="dashicons dashicons-color-picker"></span> A Colorful
Headline</h2>
}}}
both work fine. It is only when using the string 'color-picker' to
indicate the icon when creating a Gutenberg PanelBody that the icon is not
shown:
{{{#!javascript
createElement(PanelBody, { title: __('Background color','textdomain'),
initialOpen: false, icon: 'color-picker' }
}}}
Icon not shown. Other icons work fine:
{{{#!javascript
createElement(PanelBody, { title: __('Layout options','textdomain'),
initialOpen: false, icon: 'admin-appearance' }
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50249#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list