Problem/Motivation
The preview images for the view modes in an image block are broken when a different interface language is used.
When seen on another language:
The reason for this seems to be that our rocketship_theme_starter/components/00-theme/01-atoms/05-forms/form-label/_form-label.twig is printing the classes with translated content
In english the class is correct view-mode-1-1-aspect-ratio
but in another language the class is view-mode-1-1-aspect-ratio-optioneel
so the CSS with the preview image does not apply.
Steps to reproduce
Test adding an image in layout builder while using another interface language besides EN
Proposed resolution
For now the patch targets another class that is available and not changed between languages.
Comment | File | Size | Author |
---|---|---|---|
Screenshot 2022-02-09 at 13.17.25.png | 20.94 KB | Jolidog | |
Screenshot 2022-02-09 at 10.25.48.png | 26.26 KB | Jolidog |
Issue fork rocketship_core-3263407
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
Grayle CreditAttribution: Grayle at Dropsolid commented