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

@@ -33,8 +33,8 @@ export default function ClearSearchButton({
type="button"
>
<DeleteIcon color="burgundy" height={20} width={20} />
<Caption color="burgundy" type="bold">
{intl.formatMessage({ id: "Clear searches" })}
<Caption color="burgundy" type="bold" asChild>
<span>{intl.formatMessage({ id: "Clear searches" })}</span>
</Caption>
</button>
)

View File

@@ -65,12 +65,17 @@ export default function FormContent({
theme="base"
type="submit"
>
<Caption color="white" type="bold" className={styles.buttonText}>
{intl.formatMessage({ id: "Search" })}
<Caption
color="white"
type="bold"
className={styles.buttonText}
asChild
>
<span>{intl.formatMessage({ id: "Search" })}</span>
</Caption>
<div className={styles.icon}>
<span className={styles.icon}>
<SearchIcon color="white" width={28} height={28} />
</div>
</span>
</Button>
</div>
</div>