bobbingwide / oik-blocks

WordPress 5.0 blocks for oik shortcodes
https://oik-plugins.com/oik-plugins/oik-blocks
GNU General Public License v3.0
1 stars 0 forks source link

Create an icon block to enhance [bw_dash] #22

Closed bobbingwide closed 2 years ago

bobbingwide commented 5 years ago

The [bw_dash] shortcode can be used to display icons from a number of fonts - dashicons, genericons, texticons and (soon) core block icons. See https://github.com/bobbingwide/oik-bob-bing-wide/issues/26

While the [bw_dash] shortcode is still necessary for use in widgets and other places where it’s not yet possible to use a block, it would be nice to be able to implement an icon block.

Many page builder plugins already provide an icon like block, with lots of different options for Size, Colour, Links etc. Our block should have similar behaviour.

Requirements

Proposed solution

TBD

bobbingwide commented 5 years ago

Don't forget to look at https://github.com/FontAwesome/Font-Awesome

bobbingwide commented 5 years ago

For the list of dashicons to be implemented see https://oik-plugins.com/oik_shortcodes/bw_dash/ oik-bob-bing-wide plugin needs to be at 1.31.2 or higher for SVG icons to be listed.

I created the dashiconslist.js file using a new test case for oik-bob-bing-wide.

bobbingwide commented 5 years ago

I have decided to create two separate blocks.

Block Type Implementation Purpose
oik-block/dashicon Dynamic SSR [bw_dash] logic Display a dash icon
oik-block/blockicon Static <BlockIcon> Display the icon for a registered block
bobbingwide commented 4 years ago

The oik-bbw/dashicon block was delivered in v1.34.0

See: https://www.oik-plugins.com/block/dashicon-oik-bbw-dashicon/ And https://blocks.wp-a2z.org/block/dashicon-oik-bbw-dashicon/

bobbingwide commented 2 years ago

The dashicon block, which now in oik-bob-bing-wide, is being updated for better front end performance to display the dashicon SVG's rather than icons from the dashicon font.

Closing this issue.