Skip to content

Commit

Permalink
[DateRangePicker] Fix vertical alignment for multi input fields (#16490)
Browse files Browse the repository at this point in the history
  • Loading branch information
noraleonte authored Feb 6, 2025
1 parent 6f60283 commit e63e8c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const useUtilityClasses = (ownerState: MultiInputDateRangeFieldProps<any, any>)

const MultiInputDateRangeFieldRoot = styled(
React.forwardRef((props: StackProps, ref: React.Ref<HTMLDivElement>) => (
<Stack ref={ref} spacing={2} direction="row" alignItems="center" {...props} />
<Stack ref={ref} spacing={2} direction="row" alignItems="baseline" {...props} />
)),
{
name: 'MuiMultiInputDateRangeField',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const useUtilityClasses = (ownerState: MultiInputDateTimeRangeFieldProps<any, an

const MultiInputDateTimeRangeFieldRoot = styled(
React.forwardRef((props: StackProps, ref: React.Ref<HTMLDivElement>) => (
<Stack ref={ref} spacing={2} direction="row" alignItems="center" {...props} />
<Stack ref={ref} spacing={2} direction="row" alignItems="baseline" {...props} />
)),
{
name: 'MuiMultiInputDateTimeRangeField',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const useUtilityClasses = (ownerState: MultiInputTimeRangeFieldProps<any, any>)

const MultiInputTimeRangeFieldRoot = styled(
React.forwardRef((props: StackProps, ref: React.Ref<HTMLDivElement>) => (
<Stack ref={ref} spacing={2} direction="row" alignItems="center" {...props} />
<Stack ref={ref} spacing={2} direction="row" alignItems="baseline" {...props} />
)),
{
name: 'MuiMultiInputTimeRangeField',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ const PickersInputBaseSection = styled(PickersSectionListSection, {
fontSize: 'inherit',
letterSpacing: 'inherit',
lineHeight: '1.4375em', // 23px
display: 'flex',
display: 'inline-block',
whiteSpace: 'nowrap',
}));

const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {
Expand Down

0 comments on commit e63e8c4

Please sign in to comment.