Skip to content
Snippets Groups Projects
Commit 63fc9757 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Automatically add contained width class if not a full width section

parent 6e03e135
No related branches found
No related tags found
1 merge request!187Features/kpaxman fix width
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
{% if pattern_lab %} {% if pattern_lab %}
class="{{ classes }}" class="{{ classes }}"
{% else %} {% else %}
{% if not attributes.hasClass('uw-full-width') %}
{% set classes = classes|merge(['uw-contained-width']) %}
{% endif %}
{{ attributes.addClass(classes) }} {{ attributes.addClass(classes) }}
{% endif %} {% endif %}
> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment