Skip to content

Commit

Permalink
update styles and markup to test paragraph--button spacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
poojagunturu96 committed Nov 15, 2024
1 parent 291eb7f commit d3806e3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/scss/_paragraphs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@

.paragraph--button {
margin-bottom: $spacing-7;
margin-right: $spacing-4;

.button:not(:last-child) {
margin-right: $spacing-4;
}

@include breakpoint(md) {
margin-bottom: $spacing-8;
Expand Down
6 changes: 5 additions & 1 deletion src/templates/paragraphs/button.twig
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<a href="" class="paragraph--button button button--primary">Do something awesome</a>
<div class="paragraph--button">
{% for i in 0..n-1 %}
<a href="" class="button button--primary">Do something awesome</a>
{% endfor %}
</div>
8 changes: 6 additions & 2 deletions src/templates/partials/basic-content.twig
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@

{% include 'paragraphs/text.twig' %}

{% include 'paragraphs/button.twig' %}
{% include 'paragraphs/button.twig' with {
n: 2
}%}

{% include 'paragraphs/button.twig' %}
{# {% include 'paragraphs/button.twig' %} #}

{% include 'paragraphs/two-col-text.twig' %}

{% include 'paragraphs/text-short.twig' %}

Expand Down

0 comments on commit d3806e3

Please sign in to comment.