-
Hey @kevinpapst. I'm in a dead-end with how the modal embed is done. I was about to make a PR to solve this but there are some questions: How to handle more classes than default
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Wow, that must have taken ages to create, well explained 👍 I think an embed works with blocks and a macro works with parameter. Is something wrong with adding a simple block: <div {% block modal_body_attributes %}{% endblock %} class="modal-body {% block modal_body_class %}{% endblock %}">
{% block modal_body %}{% endblock %}
</div>
Fine with me. If you have a very special use-case, you can always use plain html with the bootstrap classes. |
Beta Was this translation helpful? Give feedback.
-
To summarize:
<div class="modal-body {% block modal_body_class %}{% endblock %}"></div>
|
Beta Was this translation helpful? Give feedback.
-
The last example is really ugly, I never used that. For 2 & 3 I would say: less flexible. You could use your own class for the sizing I am really not an evangelist who preaches a way of doing something in a certain way, just trying to find a good solution that is understandable to bundle users. It is just my personal feeling, that it is counter-intuitive to pass variables to an embed. If you find your force 😁 please post a rewritten embed and I will give it a try! |
Beta Was this translation helpful? Give feedback.
To summarize:
Depend of your answer to above but do we name Extra classes:
xxxxx_class
Does bodyClass override default classes?
No ❌
Block VS variables
Blocks
inside templates ANDvariables
for macros