Currently a library item paragraph is rendered with a div.paragraph--type--from-library wrapper, and an inner div.field--name-paragraphs wrapper, before rendering the referenced paragraph.
Should it be rendered just as the referenced paragraph, without those wrappers? This patch removes at least the entity reference field wrapper, and sets the outermost wrapper to inherit the classes of the referenced paragraph type. It still results in 2 paragraph wrappers, any ideas how to remove that?
Comment | File | Size | Author |
---|---|---|---|
#2 | paragraphs_collection-library_remove_wrapper-2923815-1.patch | 775 bytes | bgilhome |
|
Comments
Comment #2
bgilhome CreditAttribution: bgilhome commentedComment #3
BerdirMoving to Paragraphs project.
Comment #4
miro_dietikerMaybe we still should pass in the original item into the yml so access is still possible?
Comment #5
miro_dietikerAnd we should have tests for this to correctly validate and document the expectations.