Skip to content

Commit

Permalink
update markup and styles for paragraph button for spacing issue #486
Browse files Browse the repository at this point in the history
  • Loading branch information
poojagunturu96 committed Nov 13, 2024
1 parent 291eb7f commit 04e54db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/scss/_paragraphs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
}

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

Expand Down
4 changes: 3 additions & 1 deletion src/templates/paragraphs/button.twig
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<a href="" class="paragraph--button button button--primary">Do something awesome</a>
<div class="paragraph--button">
<a href="" class="button button--primary">Do something awesome</a>
</div>
2 changes: 2 additions & 0 deletions src/templates/partials/basic-content.twig
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@

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

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

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

{% include 'paragraphs/link-list.twig' %}
Expand Down

0 comments on commit 04e54db

Please sign in to comment.