Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RangePicker] Make text separator correctly aligned vertically #15981

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const useUtilityClasses = (classes: Partial<MultiInputRangeFieldClasses> | undef

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="start" {...props} />
)),
{
name: 'MuiMultiInputDateRangeField',
Expand All @@ -59,6 +59,7 @@ const MultiInputDateRangeFieldSeparator = styled(Typography, {
overridesResolver: (props, styles) => styles.separator,
})({
lineHeight: '1.4375em', // 23px
padding: '16.5px 0',
});

type MultiInputDateRangeFieldComponent = (<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const useUtilityClasses = (classes: Partial<MultiInputRangeFieldClasses> | undef

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="start" {...props} />
)),
{
name: 'MuiMultiInputDateTimeRangeField',
Expand All @@ -57,6 +57,7 @@ const MultiInputDateTimeRangeFieldSeparator = styled(Typography, {
overridesResolver: (props, styles) => styles.separator,
})({
lineHeight: '1.4375em', // 23px
padding: '16.5px 0',
});

type MultiInputDateTimeRangeFieldComponent = (<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const useUtilityClasses = (classes: Partial<MultiInputRangeFieldClasses> | undef

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="start" {...props} />
)),
{
name: 'MuiMultiInputTimeRangeField',
Expand All @@ -59,6 +59,7 @@ const MultiInputTimeRangeFieldSeparator = styled(Typography, {
overridesResolver: (props, styles) => styles.separator,
})({
lineHeight: '1.4375em', // 23px
padding: '16.5px 0',
});

type MultiInputTimeRangeFieldComponent = (<
Expand Down
Loading