Web:Fixed Sort button
This commit is contained in:
parent
ffde2bf1c2
commit
ab27132eb5
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user