From 8ea3362b653c231f9c67ee37892e04bb6f9fc737 Mon Sep 17 00:00:00 2001 From: Cyril Gromoff Date: Tue, 10 Sep 2024 09:24:15 +0200 Subject: [PATCH] remove unnecessary svg component and use var to handle changing theme on it --- .../infomaniak_channel_search_svg.tsx | 27 ++++++++++--------- .../src/sass/base/_css_variables.scss | 3 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/webapp/channels/src/components/common/svg_images_components/infomaniak_channel_search_svg.tsx b/webapp/channels/src/components/common/svg_images_components/infomaniak_channel_search_svg.tsx index 52b3b597be..5bd45eb5f7 100644 --- a/webapp/channels/src/components/common/svg_images_components/infomaniak_channel_search_svg.tsx +++ b/webapp/channels/src/components/common/svg_images_components/infomaniak_channel_search_svg.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { useIntl } from "react-intl"; +import React from 'react'; +import {useIntl} from 'react-intl'; export function InfomaniakChannelSearchSvg(props: React.HTMLAttributes) { const {formatMessage} = useIntl(); @@ -16,35 +16,36 @@ export function InfomaniakChannelSearchSvg(props: React.HTMLAttributes + fill='#7BB4D1' + /> diff --git a/webapp/channels/src/sass/base/_css_variables.scss b/webapp/channels/src/sass/base/_css_variables.scss index a64a318391..8bdc78b96c 100644 --- a/webapp/channels/src/sass/base/_css_variables.scss +++ b/webapp/channels/src/sass/base/_css_variables.scss @@ -37,8 +37,6 @@ --dark-modal-font-color:#fff; --code-color: #f80; --code-block-color: #fff; - --no-results-light: #F1F1F1 - --no-results-dark: #9F9F9F // Default RGB values to be replaced by applyTheme() (do not add opacity mutations here) // these are define to prevent flashes of unstyled content @@ -126,4 +124,5 @@ --ik-illustration-grey-15: #F1F1F1; --ik-illustration-grey-16: #F1F1F1; --ik-illustration-grey-17: #F5F5F5; + --ik-illustration-grey-18: #9F9F9F; }