Bug/264 button block linkcontrol#368
Bug/264 button block linkcontrol#368acketon wants to merge 11 commits intodakota/Refactor-existing-Block-Architecturefrom
Conversation
…on-block-linkcontrol # Conflicts: # dist/blocks.build.js # dist/blocks.editor.build.css # dist/blocks.style.build.css # src/blocks/button/button.js
…eorganize partials to clean up block
tim-king-code-stuff
left a comment
There was a problem hiding this comment.
Code looks great. Build runs without error. I can't open https://mymedia.bu.edu/edit/1_xns71p42 but everything seems to be in working order. When editing an old button block, it says it contains unexpected or invalid content, but the block recovery works without error, as do the older published page. Good to go!
sorry, put the wrong link in: https://mymedia.bu.edu/media/t/1_xns71p42 ah, I thought I had avoided deprecation issues but my test page must have been bad. I'll look at that and can add a new deprecation to the block to prevent those errors. The other thing I could do is maybe convert this from a static block to a dynamic block... but that could be in a different PR. The block has actually been broken since the WP 5.4 upgrade because we mistakenly used a classname for the block that was then used when WP release their button block. So the styles clash and it's breaking on sites. Fixing it is going to be tricky because it's a static block and saved in the DB so it's been left broken for the past couple years because we didn't have resources to deal with it. |
Fixes #264
CMD+K&CMD+SHIFT+KPrevious version of Button Block:
Screen.Recording.2024-06-18.at.11.58.23.AM.mov
Updated version:
https://github.com/bu-ist/bu-blocks/assets/3139096/8b821497-9e44-4de7-a3d5-6451b37d6e9e
An explanation of the changes
Part 1: https://mymedia.bu.edu/media/t/1_jcr4yfej
Part 2: https://mymedia.bu.edu/media/t/1_xns71p42