Repository navigation
0.4.0 - Major Release - WordPress 5.7
WordPress 5.7 Compatibility.
This is a major release and not backwards compatible with previous versions of WP. Many blocks are now updated to support Block API 2 and useBlockProps.
A variety of fixes and bugs are included in this release. Themes should update and recompile if they import .scss partials from BU Blocks to get the updated styles.
Themes may have to adjust their styling to compensate for adjustments made to blocks.
- Fix #383
- Fix #315 - disable autogenerated Anchor ID's in the Headline Block
- Click to Tweet style fixes. Closes #320. Updates the styles to restore the styling for the Click to Tweet feature on Paragraph blocks.
- Stats Block:
- Update to block api 2 and fix alignment issues for WP 5.7
- Change default fill / stroke color of the stats block svg donut chart so it isn't white on white background.
- Editor Styles: Add CSS4 Variable for theme styling:
--bu_blocks-block-bu-stats-editor-floated-width - Frontend Styles: Fix issue where stat bar is invisible in themes by default using light/dark color themes. The SVG circle paths needed darker colors so they are visible on a white background like Responsive Framework defaults to.
- Update to block api 2 and fix alignment issues for WP 5.7
- Modal Block 5.7 updates:
- Update Block to Block API 2 for 5.7 compatibility
- Change how modalHasSelectedBlock value is determined and move from getEditWrapperProps into the edit function as it wasn't working with Block API 2.
- Editor Styles: adjust editor styles and selectors to match new markup of Block API 2
- Editor Styles: add a new CSS4 Variable
--bu_blocks-block-bu-modal-editor-floated-widthfor theme styling
- Related Stories Block 5.7 updates:
- Update block to Block API 2 and fix alignment issues.
- Related Stories Block: invert "Manual Selection" to true for new blocks since most sites don't use YARPP for the automatic related posts feature and this makes the default state of the block appear functional instead of broken without YARPP.
- Refactor how the
isCardStyleis determined asclassNameprop is sometimes undefined in Block API 2 when the block loads. - Editor Styles: remove a clearfix style on an
:afterpsuedo element that the Block Editor needs for it's own core styling.
- Drawer Block 5.7 updates:
- Update Block to Block API 2 for 5.7 compatibility
- Editor Styles: adjust editor styles and selectors to match new markup of Block API 2
- Collapsible Block 5.7 updates:
- Update Block to Block API 2 for 5.7 compatibility
- Adjust how
is-style-previewclass is checked asprops.attributes.classnameis sometimes undefined.
- Adjust how
- Editor Styles: adjust editor styles and selectors to match new markup of Block API 2
- Increase specificity of editor styles overriding frontend styles so
.bu-block-collapsible-contentshows when block is selected.- May cause some issues in child themes with overrides.
- Increase specificity of editor styles overriding frontend styles so
- Update Block to Block API 2 for 5.7 compatibility
- Collapsible Control Block:
- Update to Block API 2, styling fixes for 5.7, fix center aligned styles.
- add Editor.scss and Style.scss files that were missing and better styling for the block
- Aside Block 5.7 updates:
- Update Block to Block API 2 for 5.7 compatibility
- It was necessary to refactor the edit function from a class structure to a function component as useBlockProps and Block API 2 won't work with class based components (https://make.wordpress.org/core/2020/11/18/block-api-version-2/#comment-40855)
- Editor Styles: Add CSS4 Variable
--bu_blocks-block-bu-aside-editor-floated-widthso themes can adjust floated width easily - Editor Styles: Adjust how align left/right styles in the editor are targeted as Block API 2 markup is different from Block API 1 and the previous selectors no longer work.
- Update Block to Block API 2 for 5.7 compatibility
- Button Block 5.7 updates:
- Update Block to Block API 2 for 5.7 compatibility
- Adjust editor markup to add a proper classname to the wrapping
<p>tag around the button itself. - This block still has issues and conflicts with the core button block due to clashing block names. A later fix is needed to address that and carefully update it.
- Adjust editor markup to add a proper classname to the wrapping
- Editor Styles: adjust editor styles to match new markup classnames
- Update Block to Block API 2 for 5.7 compatibility
- 5.7 fixes: change default light & dark color values to be slightly off color to avoid conflicts with new
whiteandblackcolors. See: WordPress/gutenberg#9357 - BUniverse Block 5.7 updates:
- Update Buniverse Block to Block API 2 for 5.7 compatibility
- Move TextControl for video id from editor to sidebar to aid in styling block when floated
- Editor Styles: Add CSS4 Variable
--bu_blocks-block-bu-buniverse-editor-floated-widthso themes can adjust floated width easily - Fix dot position for End of Article Paragraph block style.
What's Changed
- Fixed #306: BU blocks compatibility issue on wp 5.7 by @sksaju in #318
- Fixed: Invalid hook call error. invariant=321 by @sksaju in #327
- Fixed #307: Stats Block Broken in WP 5.7 Child blocks don't appear by @sksaju in #319
- Fixed block not registered console error by @sksaju in #333
- Fix/331 url input field styles in 5.7 by @acketon in #335
- Fix/325 photo essay block styles in 5.7 by @acketon in #334
- Fix/adjust default colors to avoid conflicts in 5.7 by @acketon in #350
- Fix/blockapi2 update buniverse block by @acketon in #339
- Fix/sample block test by @acketon in #338
- update button block to blockapi 2 and fix alignment issues by @acketon in #343
- Fix/blockapi2 update aside block by @acketon in #342
- Fix/blockapi2 update collapsible blocks by @acketon in #345
- Fix/blockapi2 update drawer block by @acketon in #346
- Fix/blockapi2 update Modal & Related Stories blocks by @acketon in #347
- Fix/blockapi2 update stats block by @acketon in #348
- Fix/5.7 drawer floated default width bug by @acketon in #351
- Bug/5.7 fix tweet highlight styling paragraph blocks by @acketon in #352
- Bugfix - Listicle Block: h4 always outputs even if empty by @acketon in #353
- Bug/315 disable headline block generated anchors by @acketon in #354
- Bug: 355: Collapsible Block - generate unique id's when blocks are duplicated by @acketon in #356
- Fix #384 Related Stories Block not rendering by @acketon in #385
- Wp upgrade/5.7 update with changes from develop by @acketon in #386
- fixes #383 BUniverse Block Caption rendering error by @acketon in #387
- Wp upgrade/5.7 collapsible block hidden content area bug by @acketon in #388
- 5.7 Drawer Block clearfix patch to fix bug with floated drawer blocks not being selectable in CFA. by @acketon in #389
- Fix dot position for End of Article Paragraph block style by @gcharlie in #390
- Wp upgrade/5.7 base compatibility by @acketon in #329
New Contributors
Full Changelog: 0.3.9...0.4.0