|
147 | 147 | </button>
|
148 | 148 | </div>
|
149 | 149 |
|
150 |
| - {#snippet content(section, isExpanded)} |
| 150 | + {#snippet headerContent(section, isExpanded)} |
151 | 151 | <button
|
152 | 152 | type="button"
|
153 | 153 | aria-controls="{section.uniqueid}-content"
|
|
199 | 199 | <div class="govuk-accordion__section-header">
|
200 | 200 | {#if headingLevel.toLowerCase() == 'h2'}
|
201 | 201 | <h2 class="govuk-accordion__section-heading">
|
202 |
| - {@render content(section, isExpanded)} |
| 202 | + {@render headerContent(section, isExpanded)} |
203 | 203 | </h2>
|
204 | 204 | {:else if headingLevel.toLowerCase() == 'h3'}
|
205 | 205 | <h3 class="govuk-accordion__section-heading">
|
206 |
| - {@render content(section, isExpanded)} |
| 206 | + {@render headerContent(section, isExpanded)} |
207 | 207 | </h3>
|
208 | 208 | {:else if headingLevel.toLowerCase() == 'h4'}
|
209 | 209 | <h4 class="govuk-accordion__section-heading">
|
210 |
| - {@render content(section, isExpanded)} |
| 210 | + {@render headerContent(section, isExpanded)} |
211 | 211 | </h4>
|
212 | 212 | {:else if headingLevel.toLowerCase() == 'h5'}
|
213 | 213 | <h5 class="govuk-accordion__section-heading">
|
214 |
| - {@render content(section, isExpanded)} |
| 214 | + {@render headerContent(section, isExpanded)} |
215 | 215 | </h5>
|
216 | 216 | {:else if headingLevel.toLowerCase() == 'h6'}
|
217 | 217 | <h6 class="govuk-accordion__section-heading">
|
218 |
| - {@render content(section, isExpanded)} |
| 218 | + {@render headerContent(section, isExpanded)} |
219 | 219 | </h6>
|
220 | 220 | {/if}
|
221 | 221 | </div>
|
|
0 commit comments