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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user