Skip to content

Commit

Permalink
feat: allow for tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Dec 16, 2024
1 parent faedd14 commit e50a166
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 7 additions & 4 deletions views/collection.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
'tabindex' => '0'
]
])
@if (!empty($place->callToActionItems['floating']))

@slot('floating')
@icon($place->callToActionItems['floating'])
@endicon
@if (!empty($place->callToActionItems['floating']['icon']) && !empty($place->callToActionItems['floating']['wrapper']))
@element($place->callToActionItems['floating']['wrapper'] ?? [])
@icon($place->callToActionItems['floating']['icon'])
@endicon
@endelement
@endif
@endslot
@endif
@slot('before')
@if(!empty($place->images['thumbnail16:9']['src']))
@image([
Expand Down
8 changes: 5 additions & 3 deletions views/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
])
{!! $place->postTitleFiltered !!}
@endtypography
@if (!empty($place->callToActionItems['floating']))
@icon($place->callToActionItems['floating'])
@endicon
@if (!empty($place->callToActionItems['floating']['icon']) && !empty($place->callToActionItems['floating']['wrapper']))
@element($place->callToActionItems['floating']['wrapper'] ?? [])
@icon($place->callToActionItems['floating']['icon'])
@endicon
@endelement
@endif
@endgroup
<div class="o-grid u-padding__top--4">
Expand Down

0 comments on commit e50a166

Please sign in to comment.