Problem/Motivation

This setting comes from layout options (defined in drowl_layouts_bs):
Layout Paragraph Settings

So this class goes to the LAYOUT attributes, what works well.
But the class goes to the paragraph attributes as well (paragraph--drowl-paragraphs-bs--layout.html.twig), what is wrong.

When I print the attributes in paragraph--drowl-paragraphs-bs--layout.html.twig:

   {% if attributes.hasClass('container--width-narrow') %}
      {{ dsm("paragraph attributes:") }}
      {{ dsm(attributes) }}
    {% endif %}

=> Nothing.

If I do this, one line later:

  <div{{ attributes.addClass(container_classes).removeClass('container--width-narrow') }}>

The class is gone. I have no idea whats going on.

Ressources:

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
firefox_5wy7YhYdqK.png48.08 KBthomas.frobieter
Command icon 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

thomas.frobieter created an issue. See original summary.

thomas.frobieter’s picture

Issue summary: View changes
anybody’s picture

The root cause is
elements.regions['#settings'].layout.container_max_width ?: elements.regions['#settings'].layout.container_max_width

Above

thomas.frobieter’s picture

Assigned: Unassigned » thomas.frobieter

thomas.frobieter’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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