Web:Common:Components:ColorTheme:styled:infoPanelToggle Changed the logic of showing the accent color

This commit is contained in:
Akmal Isomadinov 2023-04-13 18:50:15 +05:00
parent ac83de246d
commit 204e8819f7
2 changed files with 5 additions and 4 deletions

View File

@ -2,8 +2,8 @@ import styled, { css } from "styled-components";
import StyledInfoPanelToggleWrapper from "../../StyledInfoPanelToggleWrapper";
import Base from "@docspace/components/themes/base";
const getDefaultStyles = ({ $currentColorScheme }) =>
$currentColorScheme &&
const getDefaultStyles = ({ $currentColorScheme, isInfoPanelVisible }) =>
$currentColorScheme && isInfoPanelVisible &&
css`
.info-panel-toggle-bg {
path {

View File

@ -19,8 +19,9 @@ const StyledInfoPanelToggleWrapper = styled.div`
align-items: center;
justify-content: center;
border-radius: 50%;
background-color: ${(props) =>
props.theme.infoPanel.sectionHeaderToggleBgActive};
background-color: ${(props) => !props.isInfoPanelVisible
? "none"
: props.theme.infoPanel.sectionHeaderToggleBgActive};
path {
fill: ${(props) => props.theme.infoPanel.sectionHeaderToggleIconActive};