In at_core/templates/content/paragraph.html.twig, and subsequently any generated template, the paragraph type class is paragraph--type-[type]. The example for image type is what I would expect though, paragraph--type--image.

A similar issue happens with the view mode. Here the documentation is correct as is the example, but the actual class being generated needed to be fixed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RedEight created an issue. See original summary.

RedEight’s picture

Status: Active » Needs review
FileSize
1.19 KB

Here's the patch.

RedEight’s picture

FileSize
1.91 KB

I actually found some other inconsistencies in the documentation. Updated accordingly.

vuil’s picture

Status: Needs review » Reviewed & tested by the community
mattbloomfield’s picture

Status: Reviewed & tested by the community » Fixed

This has been committed and will find its way into a new release soon.

  • mattbloomfield committed 74ce6ef on 8.x-4.x
    Issue #2959673 by RedEight, vuil: paragraph.html.twig generates...

Status: Fixed » Closed (fixed)

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