The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
#5073 - fix datepicker styling in dark mode (#5074)
Orinami Olatunjiadbc8ab96fb0
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.tsxindex cc1ccbd4ead..5d103375368 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.tsxindex be2666fc9eb..368c7eafde3 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 {