Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There is CSS from default paragraphs (experimental) widget missing. With the latest paragraphs release (1.11) the paragraphs actions are not aligned to the right side.
Proposed resolution
Add missing CSS and replace class .widget--paragraphs with .widget--paragraphs-previewer .
Remaining tasks
Nothing.
User interface changes
The missing CSS is applied to the preview widget.
API changes
None.
Data model changes
None.
Release notes snippet
Fixed missing CSS from the original paragraphs experimental widget.
Comment | File | Size | Author |
---|---|---|---|
#2 | paragraphs_previewer-missing_css-3114626-2.patch | 1.96 KB | Stefdewa |
Comments
Comment #2
Stefdewa CreditAttribution: Stefdewa at Calibrate commentedPatch copies missing CSS from the paragraphs module about the experimental widget and replace .widget--paragraphs with .widget--paragraphs-previewer.
Comment #3
recrit CreditAttribution: recrit at Phase2 commentedSo that the styles are not maintained in 2 places, we could just add the "field--widget-paragraphs" to the previewer widget so that this widget gets any style changes in the paragraphs module.
Test the attached patch which just adds the class.
Comment #4
recrit CreditAttribution: recrit at Phase2 commentedrolling with #2 as that's a cleaner approach so wires do not get crossed between the 2 widgets.
Comment #5
recrit CreditAttribution: recrit at Phase2 commentedI ended up splitting the CSS out to its own library "paragraphs_previewer/widget".
Comment #7
recrit CreditAttribution: recrit at Phase2 commented