feat(SW-350): split input styles in booking widget
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
width: 36px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 767px) {
|
||||
@media screen and (min-width: 768px) {
|
||||
.complete,
|
||||
.partial {
|
||||
display: none;
|
||||
|
||||
@@ -16,6 +16,7 @@ import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import { init, localStorageKey, reducer, sessionStorageKey } from "./reducer"
|
||||
import SearchList from "./SearchList"
|
||||
|
||||
import inputStyles from "../Input/input.module.css"
|
||||
import styles from "./search.module.css"
|
||||
|
||||
import type { BookingWidgetSchema } from "@/types/components/bookingWidget"
|
||||
@@ -145,7 +146,7 @@ export default function Search({ locations }: SearchProps) {
|
||||
<Body asChild>
|
||||
<input
|
||||
{...getInputProps({
|
||||
className: styles.input,
|
||||
className: `${styles.searchInput} ${inputStyles.input}`,
|
||||
id: name,
|
||||
onFocus(evt) {
|
||||
handleOnFocus(evt)
|
||||
|
||||
@@ -24,30 +24,7 @@
|
||||
color: var(--UI-Text-Active);
|
||||
}
|
||||
|
||||
.input {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
height: 24px;
|
||||
outline: none;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.input::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
background-image: url("/_static/icons/close.svg");
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.container:hover:has(.input:not(:active, :focus, :focus-within))
|
||||
.input::-webkit-search-cancel-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.input:disabled,
|
||||
.input:disabled::placeholder {
|
||||
color: var(--Base-Text-Disabled);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
.inputContainer input[type="text"] {
|
||||
border: none;
|
||||
height: var(--Spacing-x3);
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.rooms,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"use client"
|
||||
import React from "react"
|
||||
import { useWatch } from "react-hook-form"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
@@ -15,7 +14,7 @@ import Search from "./Search"
|
||||
import Voucher from "./Voucher"
|
||||
|
||||
import styles from "./formContent.module.css"
|
||||
import inputStyles from "./Search/search.module.css"
|
||||
import inputStyles from "./Input/input.module.css"
|
||||
|
||||
import type { BookingWidgetFormContentProps } from "@/types/components/form/bookingwidget"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user