Web:Fixed Sort button

This commit is contained in:
Akmal Isomadinov 2022-12-12 14:42:15 +05:00
parent ffde2bf1c2
commit ab27132eb5
2 changed files with 17 additions and 2 deletions

View File

@ -2,8 +2,9 @@ import styled, { css } from "styled-components";
import { StyledComboButton } from "@docspace/components/combobox/sub-components/styled-combobutton";
import Base from "@docspace/components/themes/base";
const getDefaultStyles = ({ $currentColorScheme, isOpen }) =>
const getDefaultStyles = ({ $currentColorScheme, isOpen, theme }) =>
$currentColorScheme &&
theme.isBase &&
css`
border-color: ${isOpen && $currentColorScheme.main.accent};

View File

@ -81,6 +81,17 @@ const StyledComboButton = styled.div`
${(props) => props.modernView && modernViewButton}
.optionalBlock {
svg {
path {
fill: ${(props) =>
props.isOpen
? props.theme.iconButton.hoverColor
: props.theme.iconButton.color};
}
}
}
:hover {
border-color: ${(props) =>
props.isOpen
@ -138,7 +149,10 @@ const StyledComboButton = styled.div`
.optionalBlock {
svg {
path {
fill: ${(props) => props.theme.iconButton.hoverColor};
fill: ${(props) =>
props.isOpen
? props.theme.iconButton.hoverColor
: props.theme.iconButton.color};
}
}
}