Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Dec 15, 2023
1 parent 5fac716 commit e000e47
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/x-date-pickers/src/PickersTextField/PickersInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ const PickersInputRoot = styled(Box, {
display: 'flex',
justifyContent: 'flex-start',
alignItems: 'center',
width: ownerState.fullWidth ? '100%' : '25ch',
position: 'relative',
borderRadius: (theme.vars || theme).shape.borderRadius,
[`&:hover .${pickersInputClasses.notchedOutline}`]: {
borderColor: (theme.vars || theme).palette.text.primary,
},
...(ownerState.fullWidth && {
width: '100%',
}),

// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
Expand Down Expand Up @@ -82,7 +80,6 @@ const PickersInputSectionsContainer = styled(PickersSectionListRoot, {
fontFamily: theme.typography.fontFamily,
fontSize: 'inherit',
lineHeight: '1.4375em', // 23px
display: 'flex',
flexGrow: 1,
...(theme.direction === 'rtl' && { textAlign: 'right /*! @noflip */' as any }),
...(!(ownerState.adornedStart || ownerState.focused || ownerState.filled) && {
Expand All @@ -107,7 +104,7 @@ const PickersInputSection = styled(PickersSectionListSection, {
fontFamily: theme.typography.fontFamily,
fontSize: 'inherit',
lineHeight: '1.4375em', // 23px
display: 'flex',
flexGrow: 1,
}));

const PickersInputSectionContent = styled(PickersSectionListSectionContent, {
Expand Down

0 comments on commit e000e47

Please sign in to comment.