Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
845 stars 342 forks source link

Spacer block's height cannot be edited when using the Raw theme #7850

Closed marissaexplores closed 4 days ago

marissaexplores commented 3 weeks ago

Quick summary

The spacer block cannot be edited when using the Raw theme. When trying to edit the height, the height will automatically be removed and cannot be edited further.

Steps to reproduce

  1. Install Raw Theme
  2. Go to Appearance > Editor or use the block editor on any page.
  3. Add a spacer block to the template or page.
  4. Try to change the height.

Annotation on 2024-06-11 at 14-38-17

What you expected to happen

We should be able to change the height of the spacer block.

What actually happened

When trying to edit the height of a spacer block, the height is automatically removed and cannot be edited.

VIDEO: https://github.com/Automattic/themes/assets/102770686/e245cf7b-2e19-447a-b050-b7e888537497

Browser

Mozilla Firefox, Android Chrome

Context

Discovered by DIFM team while building sites for customers who chose the Raw theme

Platform (Simple, Atomic, or both?)

Simple

Other notes

This issue is present in the site editor templates, as well as, in the block editor on individual pages.

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, easy to implement

Workaround details

WORKAROUNDS:

  1. Duplicate an existing spacer block that is already the height you need.
  2. Create/edit the block on a different website (not using the Raw theme), copy the block, then paste the block to the website that uses the Raw theme.
mrfoxtalbot commented 4 days ago

It seems to works as expected on my testing simple site.

Screenshot 2024-07-01 at 16 43 59 Screenshot 2024-07-01 at 16 44 03

I am also able to edit the values directly without any issues:

https://github.com/Automattic/themes/assets/4452464/070ef187-4a4f-42e2-b51e-af3d93d0b03a

I will close this as cannot repro but please feel free to reopen if you can still replicate it (and if so, please include a link!)