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:
@@ -82,8 +82,8 @@ export default function DatePickerDesktop({
|
||||
size="small"
|
||||
theme="base"
|
||||
>
|
||||
<Caption color="white" type="bold">
|
||||
{intl.formatMessage({ id: "Select dates" })}
|
||||
<Caption color="white" type="bold" asChild>
|
||||
<span>{intl.formatMessage({ id: "Select dates" })}</span>
|
||||
</Caption>
|
||||
</Button>
|
||||
</footer>
|
||||
|
||||
@@ -94,8 +94,8 @@ export default function DatePickerMobile({
|
||||
size="large"
|
||||
theme="base"
|
||||
>
|
||||
<Body color="white" textTransform="bold">
|
||||
{intl.formatMessage({ id: "Select dates" })}
|
||||
<Body color="white" textTransform="bold" asChild>
|
||||
<span>{intl.formatMessage({ id: "Select dates" })}</span>
|
||||
</Body>
|
||||
</Button>
|
||||
<div className={styles.backdrop} />
|
||||
|
||||
Reference in New Issue
Block a user