Skip to content

Commit cab3682

Browse files
committed
fix h1 and test attrs
1 parent 222647f commit cab3682

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/routes/about-us/+page.svelte

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@
5656
{#each sections as section, index}
5757
<section data-test={`about-us-${section.key}`}>
5858
<Panel type="plain">
59-
<h1 class="h2">{section.header}</h1>
59+
{#if index === 0}
60+
<h1 class="h2">{section.header}</h1>
61+
{:else}
62+
<h2>{section.header}</h2>
63+
{/if}
6064

6165
{#each section.paragraphs as paragraph}
6266
<p>{@html paragraph}</p>
@@ -67,7 +71,7 @@
6771
</section>
6872
{/each}
6973

70-
<section data-test="about-values">
74+
<section data-test="about-us-values">
7175
<Panel type="plain">
7276
<h2>{m["pages.about.values.header"]()}</h2>
7377

@@ -81,14 +85,14 @@
8185
</Panel>
8286
</section>
8387

84-
<section data-test="about-social">
88+
<section data-test="about-us-social">
8589
<Panel>
8690
<h2>{m["pages.about.sm.header"]()}</h2>
8791

8892
<div class="center">
8993
<Socials type="dark" size="medium" />
9094

91-
<Button href={m["pages.about.sm.donate.href"]()} arrow={true}>
95+
<Button href={m["pages.about.sm.donate.href"]()} arrow={true} dataTest="about-us-donate-cta">
9296
{m["pages.about.sm.donate.cta"]()}
9397
</Button>
9498
</div>

0 commit comments

Comments
 (0)