File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/components/DatePicker Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,28 @@ const PredefinedDatesContainer = styled(Container)`
24
24
width: 275px;
25
25
` ;
26
26
27
+ // left value of 276px is the width of the PredefinedDatesContainer + 1 pixel for border
27
28
const CalendarRendererContainer = styled . div `
28
29
border: ${ ( { theme } ) =>
29
30
`${ theme . click . datePicker . dateOption . stroke } solid ${ theme . click . datePicker . dateOption . color . background . range } ` } ;
31
+ border-radius: ${ ( { theme } ) => theme . click . datePicker . dateOption . radii . default } ;
32
+ box-shadow: lch(6.77 0 0 / 0.15) 4px 4px 6px -1px, lch(6.77 0 0 / 0.15) 2px 2px 4px -1px;
30
33
left: 276px;
31
34
position: absolute;
32
35
top: 0;
33
36
` ;
34
37
38
+ // Height of 221px is height the height the calendar needs to match the PredefinedDatesContainer
35
39
const StyledCalendarRenderer = styled ( CalendarRenderer ) `
36
- height: 221px;
40
+ border-radius: ${ ( { theme } ) => theme . click . datePicker . dateOption . radii . default } ;
41
+ min-height: 221px;
37
42
` ;
38
43
39
44
const StyledDropdownItem = styled ( Dropdown . Item ) `
40
45
min-height: 24px;
41
46
` ;
42
47
48
+ // max-height of 210px allows the scrollable container to be a reasonble height that matches the calendar
43
49
const ScrollableContainer = styled ( Container ) `
44
50
max-height: 210px;
45
51
overflow-y: auto;
You can’t perform that action at this time.
0 commit comments