Hey everyone, here is beta build 8 of Blocs 4.2. This release patches a range of issues including more migration issues with Bootstrap 5.
Bootstrap 5
It’s here, but please remember the framework is actually still in beta. We have a feeling the official release may happen during the beta testing for Blocs 4.2, however, until then we do not recommend using Bootstrap 5 for live production sites.
Migration
You can migrate up to Bootstrap 5 but not backwards, so as this is a super early beta only migrate with backup projects and again don’t migrate and push to production, it’s way to soon for that.
To migrate, open a Bootstrap 4 project and head to project settings, you will see a new framework dropdown, change this and you are good to go!
Javascript Rewrite
Almost all of the javascript Blocs generates for light boxes, special navigations, scrollFX etc has all been completely rewritten in vanilla JS so regardless of whether your project uses bootstrap 4 or 5, please test every feature of the site before you move it into production. It’s a big rewrite and there may be some issues in these early stages, that will break functionality once exported.
JS Updates
Jquery and the lazyload javascript have both been updated to the latest versions.
Localisation
Bonjour, Hallo, Hola! Our none native English speaking users will be happy to hear Blocs now speaks French, German and Spanish. You may notice a bad translation, some text cropping or another little interface oddity. Please let me know if you spot something and it’ll be fixed up in no time!
CSS Selectors
For those interested in the new CSS selector support, you can now add these manually to classes, below is a list of newly support selectors.
- :first-letter
- :first-line
- :selection
- :first-child
- :last-child
- :first-of-type
- :last-of-type
- :placeholder
Solis
We have also spent some time working on the Blocs companion app Solis, basically patching up some longstanding issues bringing in support for Bootstrap 5. You can download Solis 1.0.7 beta build 1 here.
Summary
Please don’t be put off using this version of Blocs, just remember there are a lot of big changes in this release, so only use it for none critical, none production work, at least for the first few betas anyway.
Have a great weekend!
Download Blocs 4.2 Beta Build 8
Don’t forget to hard reload your browser, if the beta doesn’t show!
Additional
Custom Brics now show a warning symbol in the Bric Bar if their framework doesn’t match that of the project. Many of our custom Brics have been updated so they flag the new framework setting in the Bric Builder, you can download the updates for those using the Extension Manager.
There is also this new knowledge base post that should help with any custom code migration issues you may encounter when trying out Bootstrap 5.