Git Product home page Git Product logo

Comments (3)

bobbingwide avatar bobbingwide commented on September 24, 2024

These styles didn't appear to work with the Fizzie FSE theme.

With Genesis-a2z the styles are in the HTML as:

<link rel='stylesheet' id='oik_blocks-blocks-css-css'  href='https://wp.a2z/wp-content/plugins/oik-blocks/blocks/build/css/blocks.style.css?ver=1611920674' type='text/css' media='all' />

and the HTML is

<div class="wp-block-oik-block-blockicon is-style-svg24"><span class="block-editor-block-icon"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true"><path d="M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"></path></svg></span></div>

With Fizzie it's the same thing - with a different URL

<link rel='stylesheet' id='oik_blocks-blocks-css-css'  href='https://blocks.wp.a2z/wp-content/plugins/oik-blocks/blocks/build/css/blocks.style.css?ver=1611920674' type='text/css' media='all' />

and the HTML is

<div class="wp-block-oik-block-blockicon svg64 is-style-svg24"><span class="block-editor-block-icon"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true"><path d="M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"></path></svg></span></div>

The svg64 class was being added in the Additional CSS class(es) field.
Fix: Remove the extra svg64 class from the Additional CSS class(es) field for each block.

from oik-blocks.

bobbingwide avatar bobbingwide commented on September 24, 2024

The solution works for icons which were svg files, but not for dashicons.
Additional CSS is required.

Blocks for which the icons do not respond to different styles:

  • core/text-columns - (deprecated)
  • oik-bbw/csv
  • oik-bbw/dashicon
  • oik-bbw/github
  • oik-bbw/search
  • oik-bbw/wp
  • oik-block/address
  • oik-block/countdown
  • oik-block/css
  • oik-block/csv
  • oik-block/dashicon
  • oik-block/fields
  • oik-block/follow-me
  • oik-block/geshi
  • oik-block/github
  • oik-block/googlemap
  • oik-block/nivo
  • oik-block/person
  • oik-block/search
  • oik-block/shortcode-block
  • oik-block/uk-tides
  • oik-block/wp
  • oik-css/css
  • oik-css/geshi
  • oik-sb/children
  • al the oik blocks
  • all the Yoast blocks

from oik-blocks.

bobbingwide avatar bobbingwide commented on September 24, 2024

Having corrected blockicons I also needed to change blockinfo to support the additional CSS class svg64.

from oik-blocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.