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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stefdewa created an issue. See original summary.

Stefdewa’s picture

Status: Active » Needs review
FileSize
1.96 KB

Patch copies missing CSS from the paragraphs module about the experimental widget and replace .widget--paragraphs with .widget--paragraphs-previewer.

recrit’s picture

So 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.

recrit’s picture

Status: Needs review » Reviewed & tested by the community

rolling with #2 as that's a cleaner approach so wires do not get crossed between the 2 widgets.

recrit’s picture

I ended up splitting the CSS out to its own library "paragraphs_previewer/widget".

  • recrit committed f223678 on 8.x-1.x
    Issue #3114626 by Stefdewa, recrit: Missing CSS from default paragraphs...
recrit’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.