-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the dashicons list to include new icons and remove deleted ones #69
Comments
In the block editor the SVG for X is
why didn't svg2php.php find it? |
That's easily explained. I hadn't pulled the latest version of Gutenberg source from GitHub. It's now the |
While the shared library was updated automatically the |
This involved
|
The build produces Warnings since the social links icons are not exported from @wordpress/icons.
Implement a similar solution
|
There were some problems with the dashicons examples in a number of posts in s.b/oikcom. In https://s.b/oikcom/shortcode_example/bw_dash-converts-to-dashicon-block/ the dashicon appears The block's code is:
inserting the default dashicon ( which is a heart ) the block is
It can also be manually edited to
In this example I also increased the default size. As you can see, it's the In an earlier version of the post the block was displayed in the Visual editor as "This block contains unexpected or invalid content". In the code editor it appeared as
with an unexpected empty paragraph inside it. Using Attempt block recovery I ended up with
but the second time, having reverted to an earlier revision the block recovery worked. |
In https://s.b/oikcom/oik_shortcodes/bw_dash/ we show all the possible dashicons that can be produced by the [bw_dash] shortcode. For some of the SVG icons there is no icon visible next to the label.
For each of these icons the HTML has been messed up!
The SVG tag ends too early and there's an unwanted empty paragraph. It would appear that the source code in
which suggests a problem with The workaround is to use [bw_autop off] |
After a comparison of the icons produced by my code and Nick Diego's I finally discovered the cause of the problem where my icons were incorrectly displayed on the front end. In |
Delivered in v2.3.0 |
While investigating #68 I noticed there were some icons that are no longer being exported by @wordpress/icons.
I also know that I need to add the SVG icon for X.
It's time to reconcile the icon list in the shared library file
oik-dash-svg-list.php
and do whatever's necessary to make it work in the block/site editor.
See #46, which isn't yet closed but probably shoud have been.
The first thing to do seems to be run
svg2php.php
against updated versions of the source repositoriesThe text was updated successfully, but these errors were encountered: