Skip to content

Commit f8a4ecd

Browse files
phixMephix
andauthored
Fixing up the stylesheets for the date selector. (#2573)
Co-authored-by: phix <peter.hicks@astronomer.io>
1 parent 86f957f commit f8a4ecd

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

web/src/components/core/date-picker/MqDatePicker.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ const MqDatePicker: React.FC<DatePickerProps> = ({
2828
<DateTimePicker
2929
label={label}
3030
sx={{
31-
minWidth: '200px',
32-
'.MuiFormLabel-root': {
33-
transform: 'translate(14px, 0px) scale(0.75)',
31+
label: {
32+
left: theme.spacing(2),
3433
},
3534
'&:hover': {
3635
'.MuiOutlinedInput-notchedOutline': {
@@ -42,10 +41,9 @@ const MqDatePicker: React.FC<DatePickerProps> = ({
4241
'.MuiOutlinedInput-notchedOutline': {
4342
border: `2px solid ${theme.palette.common.white}`,
4443
borderRadius: theme.spacing(4),
45-
top: '-16px',
46-
left: '-6px',
4744
'> legend': {
48-
display: 'none',
45+
marginLeft: theme.spacing(2),
46+
left: theme.spacing(2),
4947
},
5048
},
5149
}}

0 commit comments

Comments
 (0)