Skip to content

Commit

Permalink
Use same overlay background for field inputs (twentyhq#5719)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijreilly authored and piyushyadav1617 committed Jun 3, 2024
1 parent e050476 commit 50f112c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { OVERLAY_BACKGROUND } from 'twenty-ui';
const StyledFieldInputOverlay = styled.div`
align-items: center;
border: ${({ theme }) => `1px solid ${theme.border.color.light}`};
${OVERLAY_BACKGROUND}
border-radius: ${({ theme }) => theme.border.radius.sm};
display: flex;
height: 32px;
justify-content: space-between;
margin: -1px;
width: 100%;
${OVERLAY_BACKGROUND}
`;

export const FieldInputOverlay = StyledFieldInputOverlay;
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import styled from '@emotion/styled';
import { OVERLAY_BACKGROUND } from 'twenty-ui';

const StyledFieldTextAreaOverlay = styled.div`
border-radius: ${({ theme }) => theme.border.radius.sm};
background: ${({ theme }) => theme.background.transparent.secondary};
backdrop-filter: ${({ theme }) => theme.blur.medium};
align-items: center;
display: flex;
height: 32px;
margin: -1px;
width: 100%;
${OVERLAY_BACKGROUND}
`;

export const FieldTextAreaOverlay = StyledFieldTextAreaOverlay;
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ const StyledTextArea = styled(TextareaAutosize)`
`;

const StyledTextAreaContainer = styled.div`
box-shadow: ${({ theme }) => theme.boxShadow.strong};
border: ${({ theme }) => `1px solid ${theme.border.color.light}`};
position: relative;
width: 100%;
padding: ${({ theme }) => theme.spacing(2)} ${({ theme }) => theme.spacing(1)};
background-color: ${({ theme }) => theme.background.primary};
border-radius: ${({ theme }) => theme.border.radius.sm};
`;

Expand Down

0 comments on commit 50f112c

Please sign in to comment.