Custom aspect-ratio within theme.json not working #66077
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Description
I'm adding a custom aspect ratio on ann image block within the theme.json of my child theme. It gets added in Gutenberg but breaks things in the editor (see video below).
In the console the following error is thrown after selecting a custom aspect ratio:
Step-by-step reproduction instructions
theme.json
(I'm adjusting the config of thetheme.json
in the child-theme)I am then trying to set the new aspect ratio in Gutenberg. The default can be set and the view is adjusted. The theme aspect ratio falls back to the full image and breaks further adjustments in the other options (can't set the focus area of the image for example).
Screenshots, screen recording, code snippet
CleanShot.2024-10-12.at.11.29.06.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: