Skip to content

Commit

Permalink
DateRange: fix date input border radius when radio group is present (…
Browse files Browse the repository at this point in the history
…web) (#3952)
  • Loading branch information
CarlosAvina authored Jan 22, 2025
1 parent 7471a84 commit 3e62b78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gestalt-datepicker/src/DateRange.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ html[dir="rtl"] .borderRight {
}

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

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

.dateFieldSectionActive {
background-color: var(--color-gray-roboflow-100);
}
Expand Down
1 change: 1 addition & 0 deletions packages/gestalt-datepicker/src/DateRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ function DateRange({
key={key}
className={classnames(borderStyles.dateFieldSection, {
[borderStyles.dateFieldSectionActive]: shouldHighlight,
[borderStyles.dateFieldSectionTopLeftBorder]: !radioGroup,
})}
>
<div
Expand Down

0 comments on commit 3e62b78

Please sign in to comment.