From 8e9cecab7090b259ddaeab89c06cd74ba6c3a4bc Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Tue, 30 Jul 2024 11:31:20 +0800 Subject: [PATCH] chore: fix styles --- src/components/layout/footer/footer.scss | 13 +++++--- .../layout/header/MobileMenu/MenuContent.tsx | 9 ++++-- .../layout/header/MobileMenu/mobile-menu.scss | 30 +++++++++++++++++-- .../PlatformSwitcher/platform-switcher.scss | 5 ++++ src/components/layout/header/header.scss | 29 ++++++++++++++++++ 5 files changed, 77 insertions(+), 9 deletions(-) diff --git a/src/components/layout/footer/footer.scss b/src/components/layout/footer/footer.scss index 5b0aa10c..ebc71f33 100644 --- a/src/components/layout/footer/footer.scss +++ b/src/components/layout/footer/footer.scss @@ -18,6 +18,11 @@ &__icon { padding: 0.8rem; + svg > g > path, + svg > path { + fill: var(--text-prominent); + } + @include mobile-or-tablet-screen { padding: 0; } @@ -82,11 +87,11 @@ align-items: center; flex-direction: column; padding: 0.8rem; - } - &-selected { - border-radius: 4px; - border: 1px solid var(--brand-blue, $color-green); + &-selected { + border-radius: 4px; + border: 1px solid var(--brand-blue, $color-green); + } } } diff --git a/src/components/layout/header/MobileMenu/MenuContent.tsx b/src/components/layout/header/MobileMenu/MenuContent.tsx index 21dd76cf..fd57161a 100644 --- a/src/components/layout/header/MobileMenu/MenuContent.tsx +++ b/src/components/layout/header/MobileMenu/MenuContent.tsx @@ -26,11 +26,14 @@ export const MenuContent = () => { key={index} > {item.map(({ LeftComponent, RightComponent, as, href, label, onClick, target }) => { + const is_deriv_logo = label === 'Deriv.com'; if (as === 'a') { return ( { return ( path, + path { + fill: var(--text-prominent); + } + } } } @@ -85,6 +92,10 @@ flex-direction: column; padding: 8px; + .deriv-text { + color: var(--text-prominent) !important; + } + &-selected { border: 1px solid var(--brand-blue, var(--brand-secondary)); border-radius: 4px; @@ -103,4 +114,17 @@ margin-inline-start: 1.6rem; } } + + .deriv-drawer__container { + background: var(--general-section-1); + } + + &__toggle, + &__back-btn, + .deriv-drawer__header__close-btn { + button > svg > path, + svg > path { + fill: var(--text-prominent); + } + } } diff --git a/src/components/layout/header/PlatformSwitcher/platform-switcher.scss b/src/components/layout/header/PlatformSwitcher/platform-switcher.scss index f1600e2e..964d7878 100644 --- a/src/components/layout/header/PlatformSwitcher/platform-switcher.scss +++ b/src/components/layout/header/PlatformSwitcher/platform-switcher.scss @@ -2,5 +2,10 @@ &__button { padding-inline-start: 1.6rem; padding-inline-end: 1.6rem; + + svg > g > path, + &-chevron > path { + fill: var(--text-prominent); + } } } diff --git a/src/components/layout/header/header.scss b/src/components/layout/header/header.scss index c91d5d4d..800aa174 100644 --- a/src/components/layout/header/header.scss +++ b/src/components/layout/header/header.scss @@ -1,3 +1,5 @@ +@use 'components/shared/styles/constants' as *; + .app-header { padding-inline-end: 20px; @@ -6,4 +8,31 @@ border-inline-end: 0.1rem solid var(--general-section-1); height: 3.2rem; } + + &__account-settings, + .notifications__wrapper, + &__menu { + svg > path, + svg > g > path { + fill: var(--text-prominent); + } + } +} + +.languages-modal { + background: var(--general-section-1); + + .deriv-modal__header { + border-bottom: 2px solid var(--general-section-5); + } + + .deriv-modal__close-icon { + path { + fill: var(--text-prominent); + } + } + + .deriv-text { + color: var(--text-prominent) !important; + } }