fix: only phrasing content is allowed inside buttons meaning no div or p elements, these are now replaced by span

This commit is contained in:
Christian Andolf
2024-10-25 15:44:30 +02:00
parent 0036fa1a68
commit 69ed852fc4
12 changed files with 56 additions and 43 deletions

View File

@@ -35,10 +35,12 @@ export default function LanguageSwitcherContainer({
onClick={() => toggleDropdown(position)}
>
<ChevronLeftIcon color="red" />
<Subtitle type="one">
{intl.formatMessage({
id: "Main menu",
})}
<Subtitle type="one" asChild>
<span>
{intl.formatMessage({
id: "Main menu",
})}
</span>
</Subtitle>
</button>
</div>
@@ -53,7 +55,7 @@ export default function LanguageSwitcherContainer({
})}
onClick={() => toggleDropdown(position)}
>
<span className={styles.bar}></span>
<span className={styles.bar} />
</button>
</div>
) : null}