Skip to content

Commit 8d4c9af

Browse files
MikeListerajhillman-ddj
authored andcommitted
Better snippet name
1 parent 28dce93 commit 8d4c9af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/components/ui/Accordion.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
</button>
148148
</div>
149149

150-
{#snippet content(section, isExpanded)}
150+
{#snippet headerContent(section, isExpanded)}
151151
<button
152152
type="button"
153153
aria-controls="{section.uniqueid}-content"
@@ -199,23 +199,23 @@
199199
<div class="govuk-accordion__section-header">
200200
{#if headingLevel.toLowerCase() == 'h2'}
201201
<h2 class="govuk-accordion__section-heading">
202-
{@render content(section, isExpanded)}
202+
{@render headerContent(section, isExpanded)}
203203
</h2>
204204
{:else if headingLevel.toLowerCase() == 'h3'}
205205
<h3 class="govuk-accordion__section-heading">
206-
{@render content(section, isExpanded)}
206+
{@render headerContent(section, isExpanded)}
207207
</h3>
208208
{:else if headingLevel.toLowerCase() == 'h4'}
209209
<h4 class="govuk-accordion__section-heading">
210-
{@render content(section, isExpanded)}
210+
{@render headerContent(section, isExpanded)}
211211
</h4>
212212
{:else if headingLevel.toLowerCase() == 'h5'}
213213
<h5 class="govuk-accordion__section-heading">
214-
{@render content(section, isExpanded)}
214+
{@render headerContent(section, isExpanded)}
215215
</h5>
216216
{:else if headingLevel.toLowerCase() == 'h6'}
217217
<h6 class="govuk-accordion__section-heading">
218-
{@render content(section, isExpanded)}
218+
{@render headerContent(section, isExpanded)}
219219
</h6>
220220
{/if}
221221
</div>

0 commit comments

Comments
 (0)