From f8127c487565c69ae9366c46f6577092a1bead4d Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Mon, 7 Oct 2024 15:17:18 +0200 Subject: [PATCH] feat(SW-350): split input styles in booking widget --- app/[lang]/(live)/layout.tsx | 1 - .../MobileToggleButton/button.module.css | 2 +- .../FormContent/Search/index.tsx | 3 ++- .../FormContent/Search/search.module.css | 23 ------------------- .../FormContent/formContent.module.css | 2 +- .../Forms/BookingWidget/FormContent/index.tsx | 3 +-- 6 files changed, 5 insertions(+), 29 deletions(-) diff --git a/app/[lang]/(live)/layout.tsx b/app/[lang]/(live)/layout.tsx index fffe0a0b0..3704178c4 100644 --- a/app/[lang]/(live)/layout.tsx +++ b/app/[lang]/(live)/layout.tsx @@ -2,7 +2,6 @@ import "@/app/globals.css" import "@scandic-hotels/design-system/style.css" import Script from "next/script" -import React from "react" import { env } from "@/env/server" import TrpcProvider from "@/lib/trpc/Provider" diff --git a/components/BookingWidget/MobileToggleButton/button.module.css b/components/BookingWidget/MobileToggleButton/button.module.css index 4d501f748..9a0912b07 100644 --- a/components/BookingWidget/MobileToggleButton/button.module.css +++ b/components/BookingWidget/MobileToggleButton/button.module.css @@ -31,7 +31,7 @@ width: 36px; } -@media screen and (min-width: 767px) { +@media screen and (min-width: 768px) { .complete, .partial { display: none; diff --git a/components/Forms/BookingWidget/FormContent/Search/index.tsx b/components/Forms/BookingWidget/FormContent/Search/index.tsx index 353c2807b..c6d69d45b 100644 --- a/components/Forms/BookingWidget/FormContent/Search/index.tsx +++ b/components/Forms/BookingWidget/FormContent/Search/index.tsx @@ -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) {