Skip to content

Commit

Permalink
Merge pull request #346 from helsingborg-stad/fix/segment-not-render-…
Browse files Browse the repository at this point in the history
…button-without-link

fix: Do not render buttons without links
  • Loading branch information
Anna authored Nov 1, 2023
2 parents 24d258f + 28187ba commit d1012f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/php/Component/Segment/components/content.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@
@if ($buttons)
<div class="{{ $baseClass }}__buttons">
@foreach ($buttons as $button)
@button($button)
@endbutton
@if (!empty($button['href']))
@button($button)
@endbutton
@endif
@endforeach
</div>
@endif

0 comments on commit d1012f4

Please sign in to comment.