Problem/Motivation
This setting comes from layout options (defined in drowl_layouts_bs):

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
| Comment | File | Size | Author |
|---|
Issue fork drowl_paragraphs_bs-3604052
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
Comment #2
thomas.frobieterComment #3
anybodyThe root cause is
elements.regions['#settings'].layout.container_max_width ?: elements.regions['#settings'].layout.container_max_widthAbove
Comment #4
thomas.frobieterComment #7
thomas.frobieter