Skip to content

Commit 51c1be9

Browse files
committed
fix: correcting event occasions accordion padding
1 parent 83089de commit 51c1be9

1 file changed

Lines changed: 45 additions & 32 deletions

File tree

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1-
@card([
2-
'heading' => $lang->occasionsTitle
3-
])
4-
@slot('aboveContent')
5-
@if(!empty($currentOccasion))
1+
@card([])
2+
@card__header([])
3+
@typography([
4+
'element' => 'h2',
5+
'variant' => 'h3'
6+
])
7+
{{$lang->occasionsTitle}}
8+
@endtypography
9+
@endcard__header
10+
11+
@if(!empty($currentOccasion))
12+
@card__body([])
613
@typography([
714
'classList' => [
815
'u-display--flex',
916
'u-align-items--center',
1017
'o-layout-grid--gap-2'
18+
],
19+
'attributeList' => [
20+
'style' => 'margin-left: -3px;'
1121
]
1222
1323
])
@@ -28,34 +38,37 @@
2838
{!! $currentOccasion->getStartDate() !!} - {!! $currentOccasion->getEndTime() !!}
2939
@endtypography
3040
@endtypography
31-
@endif
41+
@endcard__body
42+
@endif
3243

33-
@if(!empty($occasions) && count($occasions) > 1)
34-
@accordion([])
35-
@accordion__item([
36-
'heading' => $lang->moreOccasions
44+
@if(!empty($occasions) && count($occasions) > 1)
45+
@accordion([])
46+
@accordion__item([
47+
'heading' => $lang->moreOccasions,
48+
'attributeList' => [
49+
'style' => '--c-accordion--inset-padding-x: 0;'
50+
]
51+
])
52+
@collection([
53+
'compact' => true
3754
])
38-
@collection([
39-
'compact' => true
55+
@foreach($occasions as $occasion)
56+
@if(!$occasion->isCurrent())
57+
@collection__item([
58+
'link' => $occasion->getUrl(),
59+
'icon' => 'chevron_forward',
60+
'iconLast' => true
4061
])
41-
@foreach($occasions as $occasion)
42-
@if(!$occasion->isCurrent())
43-
@collection__item([
44-
'link' => $occasion->getUrl(),
45-
'icon' => 'chevron_forward',
46-
'iconLast' => true
47-
])
48-
@typography([
49-
'element' => 'span',
50-
])
51-
{!! $occasion->getStartDate() !!} - {!! $occasion->getEndTime() !!}
52-
@endtypography
53-
@endcollection__item
54-
@endif
55-
@endforeach
56-
@endcollection
57-
@endaccordion__item
58-
@endaccordion
59-
@endif
60-
@endslot
62+
@typography([
63+
'element' => 'span',
64+
])
65+
{!! $occasion->getStartDate() !!} - {!! $occasion->getEndTime() !!}
66+
@endtypography
67+
@endcollection__item
68+
@endif
69+
@endforeach
70+
@endcollection
71+
@endaccordion__item
72+
@endaccordion
73+
@endif
6174
@endcard

0 commit comments

Comments
 (0)