Comments (8)
Some of the SVG icons used for blocks no longer match the original dash icon.
If we want to use [bw_dash] to display these the code will need to be updated.
And because the SVG is more complex the logic to display the icons will need improving to cater for more than just the <path d=
parameter.
First example is the archive icon.
from oik-bob-bing-wide.
Couple of things.
- The SVG for the core blocks are not the same as the original dashicons.
- The default size for the core block icons is 24. I originally used 20 but increased it for the core/archive icon.
Proposal
- Extend the logic to support icons for core blocks as a separate type.
- Treat
core/archive
as if it werefont=core
. ( orclass=core
? ) - Add a new font type of
core
and include all the icons in the core blocks.
from oik-bob-bing-wide.
Having created a separate block to display Block icons, I can now undo the changes to the SVG version of the archive icon. We'll keep the size at 24 pixels.
from oik-bob-bing-wide.
There are probably some new dashicons that we should be able to display
from oik-bob-bing-wide.
There are probably some new dashicons that we should be able to display
Yes there are. These were not included in v1.34.0 I’ll leave the issue open.
from oik-bob-bing-wide.
There are probably some new dashicons that we should be able to display
Having reworked the [bw_dash]
shortcode to use the new list of SVG's available in WordPress's dash icons, icons and social links there are now over 600 SVG icons that can potentially be displayed. This is in addition to the Block icons!
The logic does not yet support the display of these SVG icons.
See also #46
from oik-bob-bing-wide.
I need to complete the documentation update for the 70 or so new icons in the dashicons set.
And mention the 280 or so WordPress icons.
Note: This excludes the Social links icons which aren't yet supported by the Icon control.
from oik-bob-bing-wide.
Closing this now that the Dashicon block supports over 580 SVG icons; some dashicons, others WordPress/Gutenberg icons.
Delivered in v2.2.1
from oik-bob-bing-wide.
Related Issues (20)
- Add totals= parameter to the [bw_csv] shortcode HOT 3
- Implement shortcode transforms to blocks
- CSV block server side rendering produces Error loading block. Invalid parameter(s): attributes HOT 2
- Update for compatibility with PHP 7.4
- Warning: number_format() expects parameter 1 to be float, string given HOT 1
- Update npm build for blocks to latest versions of node, npm etc. HOT 1
- bw_post and bw_page shortcodes no longer working HOT 1
- Add [guts] logic into the oik-bbw/wp block HOT 1
- Improve support for loading the CSV file from an attachment or file using the src attribute HOT 2
- Recover from a stupid plugin update HOT 1
- Update blocks to build using wp-scripts and register with block.json - starting with oik-bw/wp HOT 13
- Add a simple example for the CSV block HOT 1
- Add a simple example for the Search block HOT 1
- Rework the WordPress info block then internationalize HOT 6
- Refactor bw_dash and bw_github to use the shared library for class OIK_SVG_icons HOT 11
- Improve oik-bbw/github block to be Server Side Rendered HOT 3
- oik-bbw/csv block can get HTML error code 414 for too much data
- Re-enable RangeControl slider for dashicon's Icon size setting
- Support PHP 8.1 and PHP 8.2
- bw_get_notes_page_url() refers to an URL that no longer exists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oik-bob-bing-wide.