diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimeInput.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimeInput.tsx index cc1ccbd4e..5d1033753 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimeInput.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimeInput.tsx @@ -1,5 +1,6 @@ import { useCallback, useEffect, useState } from 'react'; import { useIMask } from 'react-imask'; +import { css } from '@emotion/react'; import styled from '@emotion/styled'; import { DateTime } from 'luxon'; @@ -26,7 +27,11 @@ const StyledInput = styled.input<{ hasError?: boolean }>` font-weight: 500; font-size: ${({ theme }) => theme.font.size.md}; width: 100%; - color: ${({ hasError, theme }) => (hasError ? theme.color.red : 'inherit')}; + ${({ hasError, theme }) => + hasError && + css` + color: ${theme.color.red}; + `}; `; type DateTimeInputProps = { diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx index be2666fc9..368c7eafd 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx @@ -255,7 +255,7 @@ const StyledContainer = styled.div` & .react-datepicker__day--selected { background-color: ${({ theme }) => theme.color.blue}; - color: ${({ theme }) => theme.font.color.inverted}; + color: ${({ theme }) => theme.grayScale.gray0}; } & .react-datepicker__day--outside-month {