Skip to content

Commit

Permalink
Fixing up the stylesheets for the date selector. (#2573)
Browse files Browse the repository at this point in the history
Co-authored-by: phix <peter.hicks@astronomer.io>
  • Loading branch information
phixMe and phix authored Aug 8, 2023
1 parent 86f957f commit f8a4ecd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions web/src/components/core/date-picker/MqDatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ const MqDatePicker: React.FC<DatePickerProps> = ({
<DateTimePicker
label={label}
sx={{
minWidth: '200px',
'.MuiFormLabel-root': {
transform: 'translate(14px, 0px) scale(0.75)',
label: {
left: theme.spacing(2),
},
'&:hover': {
'.MuiOutlinedInput-notchedOutline': {
Expand All @@ -42,10 +41,9 @@ const MqDatePicker: React.FC<DatePickerProps> = ({
'.MuiOutlinedInput-notchedOutline': {
border: `2px solid ${theme.palette.common.white}`,
borderRadius: theme.spacing(4),
top: '-16px',
left: '-6px',
'> legend': {
display: 'none',
marginLeft: theme.spacing(2),
left: theme.spacing(2),
},
},
}}
Expand Down

0 comments on commit f8a4ecd

Please sign in to comment.