diff --git a/components/DatePicker/date-picker.module.css b/components/DatePicker/date-picker.module.css index 985c9d63c..cfd78c747 100644 --- a/components/DatePicker/date-picker.module.css +++ b/components/DatePicker/date-picker.module.css @@ -1,12 +1,3 @@ -.container { - overflow: hidden; - position: relative; - - &[data-isopen="true"] { - overflow: visible; - } -} - .btn { background: none; border: none; @@ -15,6 +6,12 @@ padding: 0; width: 100%; text-align: left; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + padding: 20px var(--Spacing-x-one-and-half) 0; } .body { @@ -33,6 +30,7 @@ @media screen and (max-width: 1366px) { .container { z-index: 10001; + height: 24px; } .hideWrapper { @@ -63,6 +61,6 @@ border-width + wanted space below booking widget */ - top: calc(100% + var(--Spacing-x2) + 1px + var(--Spacing-x4)); + top: calc(100% + var(--Spacing-x1) + 1px + var(--Spacing-x4)); } } diff --git a/components/Forms/BookingWidget/FormContent/Search/index.tsx b/components/Forms/BookingWidget/FormContent/Search/index.tsx index 0d1ee36d4..860ecffde 100644 --- a/components/Forms/BookingWidget/FormContent/Search/index.tsx +++ b/components/Forms/BookingWidget/FormContent/Search/index.tsx @@ -169,25 +169,27 @@ export default function Search({ locations }: SearchProps) {
- + + placeholder: intl.formatMessage({ + id: "Destinations & hotels", + }), + ...register(name, { + onBlur: function () { + closeMenu() + }, + onChange: handleOnChange, + }), + type: "search", + })} + /> +
- {intl.formatMessage( - { id: "booking.nights" }, - { totalNights: nights > 0 ? nights : 0 } - )} + {nights > 0 + ? intl.formatMessage( + { id: "booking.nights" }, + { totalNights: nights } + ) + : intl.formatMessage({ + id: "Check in", + })}
diff --git a/components/GuestsRoomsPicker/guests-rooms-picker.module.css b/components/GuestsRoomsPicker/guests-rooms-picker.module.css index d4a6dbec0..dd43b2c32 100644 --- a/components/GuestsRoomsPicker/guests-rooms-picker.module.css +++ b/components/GuestsRoomsPicker/guests-rooms-picker.module.css @@ -47,6 +47,12 @@ padding: 0; width: 100%; text-align: left; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + padding: 20px var(--Spacing-x-one-and-half) 0; } .footer { @@ -109,6 +115,9 @@ } @media screen and (min-width: 1367px) { + .container { + height: 24px; + } .pickerContainerMobile { display: none; }