Skip to content

Commit 1995b3d

Browse files
review: update shadow and border radius
1 parent 07d369a commit 1995b3d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/DatePicker/DateRangePicker.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,28 @@ const PredefinedDatesContainer = styled(Container)`
2424
width: 275px;
2525
`;
2626

27+
// left value of 276px is the width of the PredefinedDatesContainer + 1 pixel for border
2728
const CalendarRendererContainer = styled.div`
2829
border: ${({ theme }) =>
2930
`${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;
3033
left: 276px;
3134
position: absolute;
3235
top: 0;
3336
`;
3437

38+
// Height of 221px is height the height the calendar needs to match the PredefinedDatesContainer
3539
const StyledCalendarRenderer = styled(CalendarRenderer)`
36-
height: 221px;
40+
border-radius: ${({ theme }) => theme.click.datePicker.dateOption.radii.default};
41+
min-height: 221px;
3742
`;
3843

3944
const StyledDropdownItem = styled(Dropdown.Item)`
4045
min-height: 24px;
4146
`;
4247

48+
// max-height of 210px allows the scrollable container to be a reasonble height that matches the calendar
4349
const ScrollableContainer = styled(Container)`
4450
max-height: 210px;
4551
overflow-y: auto;

0 commit comments

Comments
 (0)