fix(sw-350): Search field label
This commit is contained in:
@@ -138,7 +138,9 @@ export default function Search({ locations }: SearchProps) {
|
|||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
<label {...getLabelProps({ htmlFor: name })} className={styles.label}>
|
<label {...getLabelProps({ htmlFor: name })} className={styles.label}>
|
||||||
<Caption color={isOpen ? "uiTextActive" : "red"}>
|
<Caption color={isOpen ? "uiTextActive" : "red"}>
|
||||||
{intl.formatMessage({ id: "Where to" })}
|
{state.searchData?.type === "hotels"
|
||||||
|
? state.searchData?.relationships?.city?.name
|
||||||
|
: intl.formatMessage({ id: "Where to" })}
|
||||||
</Caption>
|
</Caption>
|
||||||
</label>
|
</label>
|
||||||
<div {...getRootProps({}, { suppressRefError: true })}>
|
<div {...getRootProps({}, { suppressRefError: true })}>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import type { BookingWidgetFormContentProps } from "@/types/components/form/book
|
|||||||
export default function FormContent({
|
export default function FormContent({
|
||||||
locations,
|
locations,
|
||||||
formId,
|
formId,
|
||||||
formState,
|
|
||||||
}: BookingWidgetFormContentProps) {
|
}: BookingWidgetFormContentProps) {
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const selectedDate = useWatch({ name: "date" })
|
const selectedDate = useWatch({ name: "date" })
|
||||||
@@ -60,7 +59,6 @@ export default function FormContent({
|
|||||||
<div className={styles.buttonContainer}>
|
<div className={styles.buttonContainer}>
|
||||||
<Button
|
<Button
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
disabled={!formState.isValid}
|
|
||||||
form={formId}
|
form={formId}
|
||||||
intent="primary"
|
intent="primary"
|
||||||
theme="base"
|
theme="base"
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
.section {
|
.section {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.default {
|
.default {
|
||||||
@@ -35,6 +36,13 @@
|
|||||||
var(--Spacing-x-one-and-half) var(--Spacing-x1);
|
var(--Spacing-x-one-and-half) var(--Spacing-x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
width: min(
|
||||||
|
calc(100dvw - (var(--Spacing-x2) * 2)),
|
||||||
|
var(--max-width-navigation)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
.full {
|
.full {
|
||||||
padding: var(--Spacing-x1) 0;
|
padding: var(--Spacing-x1) 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user