Skip to content

Commit

Permalink
Remove overflow prop and apply border radius with css instead
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosAvina committed Dec 10, 2024
1 parent 8283d30 commit a49013d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions packages/gestalt-datepicker/src/DateRange.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ html[dir="rtl"] .borderRight {
position: relative;
}

.dateFieldSection:first-child {
border-top-left-radius: var(--rounding-400);
border-top-right-radius: var(--rounding-400);
}

.dateFieldSectionActive {
background-color: var(--color-gray-roboflow-100);
}
Expand Down
9 changes: 1 addition & 8 deletions packages/gestalt-datepicker/src/DateRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,7 @@ function DateRange({
});

return (
<Box
borderStyle="shadow"
color="default"
display="inlineBlock"
minHeight={425}
overflow="hidden"
rounding={4}
>
<Box borderStyle="shadow" color="default" display="inlineBlock" minHeight={425} rounding={4}>
<Flex>
{radioGroup &&
// @ts-expect-error - TS2339
Expand Down

0 comments on commit a49013d

Please sign in to comment.