soflyy / breakdance-bugs

Bug reports from Breakdance users.
38 stars 6 forks source link

Breakdance disables WordPress container block dimensions settings #1022

Open csaborio001 opened 7 months ago

csaborio001 commented 7 months ago

WordPress Version: 6.4.2 Breakdance: Version 1.6.1 Breakdance Zero Theme: 1.0.0

Issue

When breakdance is enabled, and under certain settings, it will cause WordPress block components to have limited functionality that would be otherwise present. For example, dimension properties that allow to set the margin and padding of certain components are not present.

The expected behaviour is that Breakdance should not affect the behaviour of these blocks regardless of the configuration used.

Steps to Repro

  1. Enable Breakdance editor
  2. Access Breakdance -> Settings -> Theme
  3. Select "Disable Theme"
  4. Save changes
  5. Create a new post
  6. Add a group block with default settings
  7. View block properties. There are no dimensions available for the block image here
  8. Save draft of post
  9. Access Breakdance -> Settings -> Theme
  10. Select "Keep Theme"
  11. Save changes
  12. Head to Appearance -> Themes
  13. Enable 2023 theme
  14. Head back to post, refresh page
  15. View block properties, you will see that the dimensions are now available image here
  16. Download and enable "Break Dance Zero Theme"
  17. Head back to post, refresh page
  18. View block properties. There are no dimensions available for the block image here

While the 2023 theme option works, it would be better if the Breakdance zero theme could work and not affect any block's behaviour. Based from what I read, these properties are available to Wordpress "block themes", so I guess this could be fixed if you could fool WordPress in believing that the Breakdance zero theme is indeed a block theme.

References

https://wordpress.org/support/topic/no-dimensions-settings-in-block-editor/#utm_medium=referral&utm_source=facebook.com&utm_content=social