252f1c655e
* Renamed AuthAutoRouter * Moved RecoilScope * Refactored old WithTopBarContainer to make it less transclusive * Created new add opportunity button and refactored DropdownButton * Added tests * Deactivated new eslint rule * Refactored Table options with new dropdown * Started BoardDropdown * Fix lint * Refactor dropdown openstate * Fix according to PR * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
28 lines
777 B
TypeScript
28 lines
777 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
type StyledDropdownButtonProps = {
|
|
isUnfolded?: boolean;
|
|
isActive?: boolean;
|
|
};
|
|
|
|
export const StyledHeaderDropdownButton = styled.div<StyledDropdownButtonProps>`
|
|
align-items: center;
|
|
background: ${({ theme }) => theme.background.primary};
|
|
border-radius: ${({ theme }) => theme.border.radius.sm};
|
|
color: ${({ isActive, theme, color }) =>
|
|
color ?? (isActive ? theme.color.blue : 'none')};
|
|
cursor: pointer;
|
|
display: flex;
|
|
filter: ${(props) => (props.isUnfolded ? 'brightness(0.95)' : 'none')};
|
|
|
|
padding: ${({ theme }) => theme.spacing(1)};
|
|
padding-left: ${({ theme }) => theme.spacing(2)};
|
|
|
|
padding-right: ${({ theme }) => theme.spacing(2)};
|
|
user-select: none;
|
|
|
|
&:hover {
|
|
filter: brightness(0.95);
|
|
}
|
|
`;
|