Skip to content

PLP-26: Update Grid for Container Fluid#191

Merged
illepic merged 1 commit intofeature/v10/PLP-28-drupal_articlefrom
feature/v10/PLP-26-grid_container_update
Dec 18, 2017
Merged

PLP-26: Update Grid for Container Fluid#191
illepic merged 1 commit intofeature/v10/PLP-28-drupal_articlefrom
feature/v10/PLP-26-grid_container_update

Conversation

@jryanconklin
Copy link
Copy Markdown
Contributor

This PR updates Grid to allow for container-fluid or empty values (no grid) without changing how grid / layouts themselves work.

<div class="row">
<div class="col">
{% block column_1 %}{% endblock column_1 %}
{% set container_class = container ? 'container' : (container_fluid ? 'container-fluid') %}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we do this with twig filters? And if not twig filters then more use of ?:.

Copy link
Copy Markdown
Contributor Author

@jryanconklin jryanconklin Dec 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted this to be explicit to avoid refactoring usages of our grid embeds elsewhere, since we have a ton of with { container: true } throughout. This way it works as:

  • No value
  • with { container: true }
  • with { container_fluid: true }

I think it's ugly in this template for the payoff of it being easier to use. FWIW.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@illepic illepic merged commit dd31b9c into feature/v10/PLP-28-drupal_article Dec 18, 2017
@illepic illepic deleted the feature/v10/PLP-26-grid_container_update branch December 18, 2017 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants