Skip to content

Commit

Permalink
Merge pull request #455 from helsingborg-stad/fix/container-for-card-…
Browse files Browse the repository at this point in the history
…after-slot

fix: container for card after slot
  • Loading branch information
NiclasNorin authored Sep 30, 2024
2 parents 64e4b93 + 55fad19 commit f7c2b4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions source/php/Component/Card/card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<{{ $componentElement }} class="{{$class}}" {!! $attribute !!}>
@includeWhen(!$slotHasData, 'Card.views.base')
{!! $slot !!}
@if($afterContentSlotHasData)
{!! $afterContent !!}
@endif
@includeWhen($afterContentSlotHasData, 'Card.views.after-content')
</{{ $componentElement }}>

3 changes: 3 additions & 0 deletions source/php/Component/Card/views/after-content.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="{{$baseClass . '__content-after'}}">
{!! $afterContent !!}
</div>

0 comments on commit f7c2b4e

Please sign in to comment.