From 4b3d59f75b0bc8867d81eee813fab29c37c8d7fe Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Wed, 6 Aug 2025 11:26:12 +0000 Subject: [PATCH] Merged in fix/SW-2345-ui-map-close-icon-filter (pull request #2599) fix(SW-2345): ui fixes for map etc * fix(SW-2345): ui fixes for map etc Approved-by: Anton Gunnarsson --- .../filterAndSortModal.module.css | 15 +-- .../Filters/FilterAndSortModal/index.tsx | 100 +++++++++++------- .../MobileMapButtonContainer/index.tsx | 2 +- .../SelectHotelMapContent/index.tsx | 46 +++++--- .../selectHotelMapContent.module.css | 7 +- .../DatePicker/date-picker.module.css | 2 +- 6 files changed, 101 insertions(+), 71 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/filterAndSortModal.module.css b/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/filterAndSortModal.module.css index a6e1d41af..c22cdfb70 100644 --- a/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/filterAndSortModal.module.css +++ b/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/filterAndSortModal.module.css @@ -96,6 +96,8 @@ } .header { + display: flex; + justify-content: flex-end; text-align: right; padding: var(--Spacing-x-one-and-half); flex: 0 0 auto; @@ -103,14 +105,7 @@ .title { display: none; -} - -.close { - background: none; - border: none; - cursor: pointer; - justify-self: flex-end; - padding: 0; + text-align: center; } .divider { @@ -143,8 +138,8 @@ .header { display: grid; - grid-template-columns: auto 1fr; - padding: var(--Spacing-x2) var(--Spacing-x3); + grid-template-columns: 1fr auto; + padding: var(--Space-x1); align-items: center; border-bottom: 1px solid var(--Base-Border-Subtle); position: sticky; diff --git a/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/index.tsx b/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/index.tsx index b4f866ce7..4fee57313 100644 --- a/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/index.tsx +++ b/apps/scandic-web/components/HotelReservation/SelectHotel/Filters/FilterAndSortModal/index.tsx @@ -13,12 +13,12 @@ import { } from "react-aria-components" import { useIntl } from "react-intl" +import { Button } from "@scandic-hotels/design-system/Button" import DeprecatedSelect from "@scandic-hotels/design-system/DeprecatedSelect" import { Divider } from "@scandic-hotels/design-system/Divider" -import Footnote from "@scandic-hotels/design-system/Footnote" +import { IconButton } from "@scandic-hotels/design-system/IconButton" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" -import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" -import Subtitle from "@scandic-hotels/design-system/Subtitle" +import { Typography } from "@scandic-hotels/design-system/Typography" import { useHotelFilterStore } from "@/stores/hotel-filters" @@ -134,13 +134,19 @@ export default function FilterAndSortModal({ return ( <> - @@ -149,22 +155,26 @@ export default function FilterAndSortModal({ {({ close }) => ( <>
- - - {intl.formatMessage({ - defaultMessage: "Filter and sort", +

+ {intl.formatMessage({ + defaultMessage: "Filter and sort", + })} +

+ + + > + +
diff --git a/apps/scandic-web/components/HotelReservation/SelectHotel/MobileMapButtonContainer/index.tsx b/apps/scandic-web/components/HotelReservation/SelectHotel/MobileMapButtonContainer/index.tsx index 4e16cd01e..246aea5df 100644 --- a/apps/scandic-web/components/HotelReservation/SelectHotel/MobileMapButtonContainer/index.tsx +++ b/apps/scandic-web/components/HotelReservation/SelectHotel/MobileMapButtonContainer/index.tsx @@ -44,7 +44,7 @@ export default function MobileMapButtonContainer({ keepSearchParams weight="bold" > - + {intl.formatMessage({ defaultMessage: "See on map", })} diff --git a/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx b/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx index 1ee0991cd..51e6c2118 100644 --- a/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx +++ b/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx @@ -14,8 +14,9 @@ import { } from "@scandic-hotels/common/constants/routes/hotelReservation" import { debounce } from "@scandic-hotels/common/utils/debounce" import { BackToTopButton } from "@scandic-hotels/design-system/BackToTopButton" +import { Button } from "@scandic-hotels/design-system/Button" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" -import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" +import { Typography } from "@scandic-hotels/design-system/Typography" import { useHotelFilterStore } from "@/stores/hotel-filters" import { useHotelsMapStore } from "@/stores/hotels-map" @@ -137,17 +138,26 @@ export default function SelectHotelContent({ : selectHotel(lang) const closeButton = ( ) @@ -170,16 +180,20 @@ export default function SelectHotelContent({
button { border: none; + text-decoration: none; } .skeletonContainer { display: none; } -.filterContainerCloseButton { - color: var(--Component-Button-Brand-Secondary-On-fill-Default); +.link { + display: flex; + gap: var(--Space-x05); + align-items: baseline; } .bookingCodeFilter { diff --git a/packages/booking-flow/lib/components/BookingWidget/DatePicker/date-picker.module.css b/packages/booking-flow/lib/components/BookingWidget/DatePicker/date-picker.module.css index 173c1f90f..05340c3fa 100644 --- a/packages/booking-flow/lib/components/BookingWidget/DatePicker/date-picker.module.css +++ b/packages/booking-flow/lib/components/BookingWidget/DatePicker/date-picker.module.css @@ -15,7 +15,7 @@ } .body { - opacity: 0.8; + color: var(--Text-Default); } .hideWrapper {