From fe6582ccbba0d72d303a4e0fb78d1dfd441e5386 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Fri, 8 Nov 2024 12:12:12 +0100 Subject: [PATCH] fix(SW-812): styling fixes for the header and related components --- .../(standard)/select-hotel/page.tsx | 2 +- app/globals.css | 6 +-- .../JourneyTable/Pagination/index.tsx | 8 ++- .../Stays/ShowMoreButton/index.tsx | 2 +- .../Breadcrumbs/BreadcrumbsSkeleton.tsx | 7 ++- .../Header/MainMenu/Avatar/avatar.module.css | 4 +- components/Header/MainMenu/Avatar/index.tsx | 7 ++- .../MainMenuButton/menuButton.module.css | 6 +-- .../Header/MainMenu/MyPagesMenu/index.tsx | 10 ++-- .../MyPagesMenu/myPagesMenu.module.css | 3 +- .../MainMenu/MyPagesMenuContent/index.tsx | 5 +- .../myPagesMenuContent.module.css | 8 --- .../MainMenu/MyPagesMenuWrapper/index.tsx | 2 +- .../myPagesMenuWrapper.module.css | 10 ++-- .../NavigationMenu/MegaMenu/index.tsx | 10 +++- .../NavigationMenuItem/index.tsx | 14 ++++-- .../navigationMenuItem.module.css | 7 ++- .../navigationMenuList.module.css | 2 +- .../Header/MainMenu/mainMenu.module.css | 1 + components/Header/TopMenu/index.tsx | 31 +++++++----- components/Header/TopMenu/topMenu.module.css | 1 - .../EnterDetails/SectionAccordion/index.tsx | 2 +- .../HotelReservation/ReadMore/index.tsx | 2 +- components/Icons/ChevronDown.tsx | 12 ++--- components/Icons/ChevronDownSmall.tsx | 27 ++++++++++ components/Icons/ChevronLeft.tsx | 10 ++-- components/Icons/ChevronLeftSmall.tsx | 27 ++++++++++ components/Icons/ChevronRight.tsx | 10 ++-- components/Icons/ChevronUp.tsx | 27 ++++++++++ components/Icons/ChevronUpSmall.tsx | 27 ++++++++++ components/Icons/get-icon-by-icon-name.ts | 12 +++++ components/Icons/index.tsx | 4 ++ .../LanguageSwitcherContainer/index.tsx | 2 +- .../languageSwitcherContent.module.css | 2 +- components/LanguageSwitcher/index.tsx | 16 +++--- .../languageSwitcher.module.css | 49 ++++++++++++------- components/LanguageSwitcher/variants.ts | 11 ++--- components/LoginButton/index.tsx | 4 +- .../Accordion/AccordionItem/index.tsx | 7 ++- .../TempDesignSystem/Alert/Sidepeek/index.tsx | 2 +- .../Form/SelectChevron/index.tsx | 2 +- components/TempDesignSystem/Link/index.tsx | 2 + .../TempDesignSystem/Link/link.module.css | 32 ++++++++---- components/TempDesignSystem/Link/variants.ts | 4 ++ .../TeaserCard/Sidepeek/index.tsx | 2 +- .../Text/Body/body.module.css | 4 +- types/components/icon.ts | 4 ++ 47 files changed, 315 insertions(+), 134 deletions(-) create mode 100644 components/Icons/ChevronDownSmall.tsx create mode 100644 components/Icons/ChevronLeftSmall.tsx create mode 100644 components/Icons/ChevronUp.tsx create mode 100644 components/Icons/ChevronUpSmall.tsx diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx index f3d920fb7..29d16df1a 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx @@ -81,7 +81,7 @@ export default async function SelectHotelPage({ keepSearchParams > {intl.formatMessage({ id: "Show map" })} - + diff --git a/app/globals.css b/app/globals.css index 4a8b655c1..3a6b68d69 100644 --- a/app/globals.css +++ b/app/globals.css @@ -106,14 +106,14 @@ --max-width-navigation: 89.5rem; --main-menu-mobile-height: 75px; - --main-menu-desktop-height: 118px; + --main-menu-desktop-height: 129px; --booking-widget-mobile-height: 75px; --booking-widget-desktop-height: 77px; --hotel-page-map-desktop-width: 23.75rem; /* Z-INDEX */ - --header-z-index: 10; - --menu-overlay-z-index: 10; + --header-z-index: 11; + --menu-overlay-z-index: 11; --dialog-z-index: 9; --sidepeek-z-index: 100; --lightbox-z-index: 150; diff --git a/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/Pagination/index.tsx b/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/Pagination/index.tsx index bdbadc7e8..ee1f1bf9a 100644 --- a/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/Pagination/index.tsx +++ b/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/Pagination/index.tsx @@ -41,7 +41,11 @@ export default function Pagination({ handlePageChange(currentPage - 1) }} > - + {[...Array(pageCount)].map((_, idx) => ( - + ) diff --git a/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx b/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx index e988ef1c8..373d68254 100644 --- a/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx +++ b/components/Blocks/DynamicContent/Stays/ShowMoreButton/index.tsx @@ -24,7 +24,7 @@ export default function ShowMoreButton({ theme="base" intent="text" > - + {intl.formatMessage({ id: "Show more" })} diff --git a/components/Breadcrumbs/BreadcrumbsSkeleton.tsx b/components/Breadcrumbs/BreadcrumbsSkeleton.tsx index 6841c2dba..68004a81e 100644 --- a/components/Breadcrumbs/BreadcrumbsSkeleton.tsx +++ b/components/Breadcrumbs/BreadcrumbsSkeleton.tsx @@ -11,7 +11,12 @@ export default function BreadcrumbsSkeleton() { -