Skip to content

Commit

Permalink
fix(ui): react-datepicker in number fields and datepicker visual issu…
Browse files Browse the repository at this point in the history
…es (#8694)

Fixes #8683

Number fields now display correctly 

![image](https://github.com/user-attachments/assets/edf5e8d9-2292-49d2-99b7-c10e940b2a49)

Fixes issue with react-datepicker by manually copying in the css of the
library so it can be layered in

![image](https://github.com/user-attachments/assets/fcaec51a-5914-4fb5-be12-7fa2cf44a176)
  • Loading branch information
paulpopus authored Oct 14, 2024
1 parent d781624 commit e3957d7
Show file tree
Hide file tree
Showing 2 changed files with 860 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/elements/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import React from 'react'
import ReactDatePickerDefaultImport, { registerLocale } from 'react-datepicker'
const ReactDatePicker = (ReactDatePickerDefaultImport.default ||
ReactDatePickerDefaultImport) as unknown as typeof ReactDatePickerDefaultImport.default
import 'react-datepicker/dist/react-datepicker.css'

import type { Props } from './types.js'

import { CalendarIcon } from '../../icons/Calendar/index.js'
import { XIcon } from '../../icons/X/index.js'
import { useTranslation } from '../../providers/Translation/index.js'
import { getFormattedLocale } from './getFormattedLocale.js'
import './library.scss'
import './index.scss'

const baseClass = 'date-time-picker'
Expand Down
Loading

0 comments on commit e3957d7

Please sign in to comment.